尝试对无法访问的主机进行套接字操作
一位客户在连接到我们的服务器服务的 WCF 客户端上报告了此错误。
“消息:尝试对无法访问的主机进行套接字操作 类型:System.Net.Sockets.SocketException”
从此链接 http://msdn.microsoft.com/en-us/library/ms740668%28v=vs.85%29.aspx 我看到:
WSAEHOSTUNREACH 10065 没有到主机的路由。 尝试对无法访问的主机进行套接字操作。请参阅 WSAENETUNREACH。
WSAE网络无法触及 10051 网络无法访问。 尝试对无法访问的网络进行套接字操作。这通常意味着本地软件不知道到达远程主机的路由。
这是客户网络上的网络错误吗? 我们可以建议客户这样做吗?
WCF 客户端之前能够连接到服务器服务,并且似乎在重新启动计算机后问题就消失了(或者网络问题可能同时得到解决)。
谢谢阿德里亚娜
One customer reported this error at my WCF client connecting to our server service.
"Message: A socket operation was attempted to an unreachable host
Type : System.Net.Sockets.SocketException"
From this link http://msdn.microsoft.com/en-us/library/ms740668%28v=vs.85%29.aspx i see:
WSAEHOSTUNREACH
10065
No route to host.
A socket operation was attempted to an unreachable host. See WSAENETUNREACH.
WSAENETUNREACH
10051
Network is unreachable.
A socket operation was attempted to an unreachable network. This usually means the local software knows no route to reach the remote host.
Is this a network error on customer network?
Is it something we can advise customer to do?
WCF Client was able to connect to the server service before and seems that problem disappeared after reboot of machine (or maybe network problem was fixed in the meantime).
Thank you
Adriana
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
此错误表明网络未连接或配置不正确。这绝对是客户端计算机上的错误,而不是服务器上的错误。
您无能为力“解决”该问题。您几乎所能做的就是升级客户端的网络驱动程序并检查连接问题(可能它们几乎不在无线范围内,或者以太网电缆缺少锁定卡舌)。
This error indicates that the network was not connected or not configured correctly. It is definitely an error on the client machine, not your server.
There isn't much you can do to "solve" the problem. Pretty much all you can do is upgrade the client's network drivers and check for connection problems (maybe they're barely within wireless range, or the Ethernet cable is missing its locking tab).
您可以帮助您的客户或 FAE 制定 SOP 来识别连接问题。比如说,从客户端计算机 ping 服务器 IP,执行 ipconfig 并查看计算机的网络适配器是否启动。
You can help your customers or FAEs to develop an SOP for identifying connectivity issues. Say, pinging the server IP from client machine, do an ipconfig and see if the machine's network adapter is up or not.
对我来说,这是由于执行 python 脚本时出现互联网连接问题。
For me, it was due to an internet connection issue while executing a python script.