我是靠谱客的博主 畅快蜜粉,这篇文章主要介绍有关 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

最后

以上就是畅快蜜粉最近收集整理的关于有关 WCF 的一些错误处理的全部内容,更多相关有关内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(128)

评论列表共有 0 条评论

立即
投稿
返回
顶部