Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Getting Socket Exception when using RAS and TCP client both

Getting Socket Exception when using RAS and TCP client both

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpsysadminhelplearning
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kaushik_Manoj
    wrote on last edited by
    #1

    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

    L 1 Reply Last reply
    0
    • K kaushik_Manoj

      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

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      kaushik_Manoj wrote:

      because an optional resource assembly containing it cannot be found

      You need to find out what that assembly is and why it cannot be found

      led mike

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups