尝试对无法访问的主机执行套接字操作 [英] A socket operation was attempted to an unreachable host

查看:366
本文介绍了尝试对无法访问的主机执行套接字操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个客户在我的WCF客户端连接到我们的服务器服务时报告了此错误.

One customer reported this error at my WCF client connecting to our server service.

"消息:尝试对无法访问的主机进行套接字操作 类型:System.Net.Sockets.SocketException"

"Message: A socket operation was attempted to an unreachable host Type : System.Net.Sockets.SocketException"

通过此链接 http://msdn .microsoft.com/en-us/library/ms740668%28v = vs.85%29.aspx 我看到了:

WSAEHOSTUNREACH 10065 没有到主机的路由. 尝试对无法访问的主机执行套接字操作.请参阅WSAENETUNREACH.

WSAEHOSTUNREACH 10065 No route to host. A socket operation was attempted to an unreachable host. See WSAENETUNREACH.

WSAENETUNREACH 10051 网络不可达. 尝试对不可达的网络进行套接字操作.这通常意味着本地软件不知道到达远程主机的路由.

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客户端以前能够连接到服务器服务,并且似乎在计算机重新启动后问题消失了(或者同时网络问题已解决).

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).

谢谢

Adriana

推荐答案

此错误表示网络未连接或配置不正确.这绝对是客户端计算机上的错误,而不是服务器上的错误.

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).

这篇关于尝试对无法访问的主机执行套接字操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆