WCF找不到具有绑定 NetTcpBinding 的终结点的与方案 net.tcp 匹配的基址
请教个问题 WCF出现 找不到具有绑定 NetTcpBinding 的终结点的与方案 net.tcp 匹配的基址。注册的基址方案是 [http]。如何解决 谢谢
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="cusTcpBinding" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false"
transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10"
maxBufferPoolSize="2147483647 " maxBufferSize="2147483647 " maxConnections="10"
maxReceivedMessageSize="2147483647 ">
<readerQuotas maxDepth="64" maxStringContentLength="2147483647 " maxArrayLength="2147483647 "
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Transport">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows" />
</security>
</binding>
</netTcpBinding>
</bindings>
<services>
<service behaviorConfiguration="WcfSearch.QHWShopServiceBehavior" name="WcfSearch.QHWShopService">
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:3785/QHWShopService" />
</baseAddresses>
</host>
<endpoint address="" binding="netTcpBinding" contract="WcfSearch.IQHWShopService" bindingConfiguration="cusTcpBinding">
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="WcfSearch.QHWShopServiceBehavior">
<serviceMetadata />
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
[解决办法]
把你客户端配置文件发来看看
[解决办法]