首页 > 解决方案 > 站点暂时禁用 WCF 异常“net.pipe”协议

问题描述

我在事件查看器中有异常。例外是 wcf 相关的。

An error occurred in the Activation Service 'NetPipeActivator' of the protocol 'net.pipe' while trying to listen for the site '2', thus the protocol is disabled for the site temporarily. See the exception message for more details.
 URL: WeakWildcard:net.pipe://Pc4/
 Status: ConflictingRegistration
 Exception: 
 Process Name: SMSvcHost
 Process ID: 1724

我该如何解决?

标签: c#wcfconfiguration

解决方案


我们不能在 IIS 中拥有两个具有相同网络命名管道绑定的网站。因为 netnamdpipebinding 机制服务只能接收来自同一台机器的调用,所以管道名称是管道地址的唯一标识符字符串。我们只能在同一台机器上打开一个命名管道,所以两个命名管道地址不能在同一台机器上共享相同的管道名。


推荐阅读