没有连接到VS2015调试器

时间:2017-10-26 15:48:16

标签: c# visual-studio sockets visual-studio-2015

我在visual studio 2015中创建了一个Windows窗体应用程序。 我在Windows 10上运行。 我的应用程序将使用UdpClient对象连接到客户端计算机上的UDP套接字。 然后应用程序将在端口上执行接收,外部系统将消息发送到端口。

在Visual Studio 2015中运行调试时,应用程序可以正常运行。

当我从bin文件夹运行debug或release .exe时,接收上发生SocketException。

Error:  
  ErrorCode=10060  
  HResult=-2147467259  
  Message=A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond  
  NativeErrorCode=10060  

0 个答案:

没有答案