我正在尝试运行如何为 Windows Phone 创建和使用 TCP 套接字客户端应用程序,但出现以下错误...
An exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.ni.dll and wasn't handled before a managed/native boundary
An exception of type 'System.Net.Sockets.SocketException' occurred in System.Net.ni.dll and wasn't handled before a managed/native boundary
An exception of type 'System.Net.Sockets.SocketException' occurred in System.Net.ni.dll and wasn't handled before a managed/native boundary
An exception of type 'System.Net.Sockets.SocketException' occurred in System.Net.ni.dll and wasn't handled before a managed/native boundary
An exception of type 'System.Net.Sockets.SocketException' occurred in System.Net.ni.dll and wasn't handled before a managed/native boundary
我在我的开发计算机上运行了 Simple IP 服务,并且在调试时手机通过 USB 链接。它没有在文章中建议您应该使用什么 IP 地址从电话到达开发计算机 - 我已经尝试过,
192.168.1.66 // Dev computer address on lan
whitby // Dev computer name
127.0.0.1 // Localhost, refers to dev computer or phone?
localhost // ditto
我也在猜测,如果主机错误,我会收到一条很好的错误消息 - 相反,没有任何内容(即空字符串)从e.SocketError.ToString()
我正在使用 Windows Phone 8。