此集合已包含具有方案Http的地址

时间:2015-05-24 03:19:47

标签: wcf

我想要基本和Ws(通过HTTP - 安全性不是问题)和netTCP绑定在不同的URL。

<service name="WCFService.IHelloService" behaviorConfiguration="MyDefaultBehaviour">            
<endpoint address="basicHttpAddress" binding="basicHttpBinding" contract="WCFService.IIHelloService"/>
<endpoint address="netTCPAddress" binding="netTcpBinding" contract="WCFService.IIHelloService"/>            
<endpoint address="wsBindingAddress"
                      binding="wsHttpBinding" contract="WCFService.IIHelloService"
                      bindingConfiguration="wsBindingConfiguration"/>

<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>

<host>
    <baseAddresses>                     
        <add baseAddress="http://localhost:8091/"/>
        <add baseAddress="net.tcp://localhost:8095/"/>
        <add baseAddress="http://localhost:8098/"/>                 
    </baseAddresses>
</host>

由于我在同一协议(http)上拥有多个基地址,因此我也启用了multipleSiteBindingsEnabled。

但我仍然遇到同样的问题。

如何解决这个问题?

0 个答案:

没有答案