<?xml version="1.0" encoding="utf-8" ?>
10年积累的成都做网站、网站建设、外贸营销网站建设经验,可以快速应对客户对网站的新想法和需求。提供各种问题对应的解决方案。让选择我们的客户得到更好、更有力的网络服务。我虽然不认识你,你也不认识我。但先建设网站后付款的网站建设流程,更有蔚县免费网站建设让你可以放心的选择与我们合作。
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" />
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="MyServiceBehavior">
<serviceMetadata httpGetEnabled="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<netTcpBinding>
<binding name="netTcpBindingConfiguration">
<readerQuotas maxDepth="64" maxStringContentLength="2147483647 " maxArrayLength="2147483647 " maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
<!--<security mode="none">
<transport clientCredentialType="none" protectionLevel="EncryptAndSign" />
</security>-->
</binding>
</netTcpBinding>
</bindings>
<services>
<service behaviorConfiguration="MyServiceBehavior" name="service.MyPublisher" >
<endpoint address="" binding="netTcpBinding" contract="service.IMyContract" bindingConfiguration="netTcpBindingConfiguration"/>
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://192.168.0.139:8899/" />
</baseAddresses>
</host>
</service>
</services>
</system.serviceModel>
</configuration>
注意httpGetEnabled="false"这个值需是false,如果是true服务器出错。
分享标题:netTCPBinding的配置
当前URL:https://www.cdcxhl.com/article18/gcpodp.html
成都网站建设公司_创新互联,为您提供域名注册、网站建设、外贸网站建设、微信小程序、动态网站、用户体验
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联