Getting Socket Exception when using RAS and TCP client both
-
Hi I need to dial to a modem using RAS and than communicate to a TCP server using tcp client. If I test RAS and TCP connection in isolation (using sample applications) both are running fine. However when use them both in the order 1. RAS call 2. TCP connection using TCP client. I am getting following exception: System.Net.Sockets.SocketException: An error message cannot be displayed because an optional resource assembly containing it cannot be found at System.Net.Sockets.Socket.ConnectNoCheck() at System.Net.Sockets.Socket.Connect() at System.Net.Sockets.TcpClient.Connect() at System.Net.Sockets.TcpClient.Connect() at SerialCommunicator.TcpConnection.Connect() at GosHawkII.Forms.FormMain.ConnectTcpClient() at GosHawkII.Forms.FormMain.Connect() at GosHawkII.Forms.FormMain.MenuItemConnect_Click() at System.Windows.Forms.Control.OnClick() at System.Windows.Forms.Button.OnClick() at System.Windows.Forms.ButtonBase.WnProc() at System.Windows.Forms.Control._InternalWnProc() at Microsoft.AGL.Forms.EVL.EnterMainLoop() at System.Windows.Forms.Application.Run() at GosHawkII.Program.Main() Kindly advice what I need to do to achieve the desired results Thanks in Advance Manoj Kaushik
-
Hi I need to dial to a modem using RAS and than communicate to a TCP server using tcp client. If I test RAS and TCP connection in isolation (using sample applications) both are running fine. However when use them both in the order 1. RAS call 2. TCP connection using TCP client. I am getting following exception: System.Net.Sockets.SocketException: An error message cannot be displayed because an optional resource assembly containing it cannot be found at System.Net.Sockets.Socket.ConnectNoCheck() at System.Net.Sockets.Socket.Connect() at System.Net.Sockets.TcpClient.Connect() at System.Net.Sockets.TcpClient.Connect() at SerialCommunicator.TcpConnection.Connect() at GosHawkII.Forms.FormMain.ConnectTcpClient() at GosHawkII.Forms.FormMain.Connect() at GosHawkII.Forms.FormMain.MenuItemConnect_Click() at System.Windows.Forms.Control.OnClick() at System.Windows.Forms.Button.OnClick() at System.Windows.Forms.ButtonBase.WnProc() at System.Windows.Forms.Control._InternalWnProc() at Microsoft.AGL.Forms.EVL.EnterMainLoop() at System.Windows.Forms.Application.Run() at GosHawkII.Program.Main() Kindly advice what I need to do to achieve the desired results Thanks in Advance Manoj Kaushik