看看你的IIS绑定是如何定义/在位于IIS config文件配置...
C:\Windows\System32\inetsrv\config\applicationHost.config
找到通往站点,站点绑定部分,然后查找绑定具有相同的协议定义。例如:
<binding protocol="http" bindingInformation="*:80:" />
<binding protocol="net.tcp" bindingInformation="8081:*" />
<binding protocol="net.pipe" bindingInformation="*" />
<binding protocol="net.msmq" bindingInformation="localhost" />
<binding protocol="msmq.formatname" bindingInformation="localhost" />
<binding protocol="https" bindingInformation="*:443:" />
<binding protocol="net.tcp" bindingInformation="9000:*" />
注意“net.tcp”协议有两个绑定。上面的例子中的配置将抛出以下错误:
This collection already contains an address with scheme net.tcp. There can be at most one address per scheme in this collection. Paramter name: item
我亲身经历这个错误,当我使用命令提示(相对于IIS经理)加入的net.tcp协议:
%windir%\system32\inetsrv\appcmd.exe set site "Default Web Site" -+bindings.[protocol-'net.tcp',bindinginformation-'9000:*']
来源
2010-09-09 18:34:29
Jed
哪些你的system.servicemodel配置组的内容? – 2010-07-02 00:52:29