我的Web.Config就在这里:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="MyServiceTypeBehaviors" >
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="basicHttpBindingConfig"/>
</basicHttpBinding>
<netTcpBinding>
<binding name="netTcpBindingConfig"/>
</netTcpBinding>
</bindings>
<services>
<service name="testService.RaptorAPI">
<endpoint address="mex" binding="mexTcpBinding" contract="testService.IRaptorAPI" listenUriMode="Explicit"/>
<endpoint address="" binding="netTcpBinding" contract="testService.IRaptorAPI" bindingConfiguration="netTcpBindingConfig">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<host>
<baseAddresses>
<add baseAddress="net.tcp://ccs-labs.com:802"/>
<add baseAddress="http://ccs-labs.com:801"/>
</baseAddresses>
</host>
</service>
</services>
更新1 net.tcp绑定在IIS上,正在运行相应的服务。
有人可以找到并更正错误&#34; 找不到与绑定MetadataExchangeTcpBinding的端点的scheme net.tcp匹配的基址。注册的基地址方案是[http]。&#34;