我一直在努力解决生产服务器上的wcf问题。抛出的错误之一是#34;服务器拒绝了升级请求。"我收到的其他奇怪的错误。我们的应用程序在前端的Citrix环境中运行,我们的应用程序服务器托管我们的WCF服务。我们有两个应用服务器设置用于负载平衡,这个KEMP服务器支持粘性ip,因为我们使用的是nettcpbinding。但是,我不确定我们是否正确配置了NetTCP设置,因为当超过5个用户登录到应用程序时,应用程序经常使用100%CPU。在iisreset之后,重新发生这需要大约一个小时。请在下面找到NETTcpBinding的配置:
<bindings>
<netTcpBinding>
<binding name="NetTcpLargeBindingEndpoint"
closeTimeout="00:05:00"
openTimeout="00:05:00"
receiveTimeout="00:15:00"
sendTimeout="00:15:00"
transactionFlow="false"
transferMode="Buffered"
transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="2147483647"
maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647"
listenBacklog="10"
portSharingEnabled="false"
>
<reliableSession enabled="false"/>
<readerQuotas maxArrayLength="2147483647" maxStringContentLength="2147483647" />
<security mode="Transport">
<transport clientCredentialType="Windows" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</netTcpBinding>
</bindings>
我试过搜索文章以获取nettcpbindng的正确设置,但没有运气,最有用的是这篇msdn文章:
https://msdn.microsoft.com/en-us/library/vstudio/hh273122(v=vs.100).aspx 我在这些环境中做错了吗?请协助