有关 WCF 的一些错误处理

错误消息:

System.ServiceModel.EndpointNotFoundException: 无法调度消息,因为终结点地址“net.tcp://localhost/xxx.svc”上的服务对该地址的协议不可用。

英文消息:

EndpointNotFoundException: The message could not be dispatched because the service at the endpoint address 'net.tcp://localhost/xxx.svc' is unavailable for the protocol of the address.

解决方法:

1、确认相关应用程序中的协议中,包含 net.tcp;

2、重启一下 net.tcp 的相关监听服务。。。

3、重新注册一下 ServiceModel:http://www.cnblogs.com/xwgli/archive/2013/03/15/2961022.html

原文地址:https://www.cnblogs.com/xwgli/p/5081875.html