WCF找不到具有绑定 NetTcpBinding 的终结点的与方案 net.tcp 匹配的基址

selg1984 2013-12-24 09:40:43
请教个问题 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>
...全文
398 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
「已注销」 2014-07-31
  • 打赏
  • 举报
回复
请问楼主是怎么解决的?
  • 打赏
  • 举报
回复
你net.tcp://ziran-pc/QHWShopService.svc这个直接能访问吗 你的服务不想用iis部署是吗?为什么要用nettcp
  • 打赏
  • 举报
回复
引用 6 楼 selg1984 的回复:
打算用nettcp看看能否解决大访问量时cpu过高问题
那你准备用iis来承载nettcp协议的WCF服务吗?
selg1984 2013-12-25
  • 打赏
  • 举报
回复
打算用nettcp看看能否解决大访问量时cpu过高问题
selg1984 2013-12-24
  • 打赏
  • 举报
回复
这个是客户端的配置
selg1984 2013-12-24
  • 打赏
  • 举报
回复
<system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> <system.serviceModel> <bindings> <netTcpBinding> <binding name="NetTcpBinding_IQHWShopService" 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="524288" maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/> <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/> <security mode="None"></security> </binding> </netTcpBinding> </bindings> <client> <endpoint address="net.tcp://ziran-pc/QHWShopService.svc" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IQHWShopService" contract="IQHWShopService" name="NetTcpBinding_IQHWShopService" /> </client> </system.serviceModel>
  • 打赏
  • 举报
回复
引用 1 楼 sammy_luo 的回复:
把你客户端配置文件发来看看
你这WCF服务是用什么来承载的呢
  • 打赏
  • 举报
回复
把你客户端配置文件发来看看

62,047

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧