WCF 现有连接被远程主机强制关闭
尝试使用 netctp 跨 WCF 4 请求数据时出现上述错误。该应用程序在我的开发计算机和从实体框架返回数据请求的远程 Windows 2008 服务器上运行得非常愉快。该应用程序在我的开发计算机上仍然可以正常工作,但当我请求我创建的新页面时,它无法在远程 Windows 服务器上工作,该页面返回的数据比我所有其他页面多一点。
在发布这个问题之前,我已经遵循了最大化所有 nettcp 绑定属性的所有常用路线,以防它是一个限制问题,如下所示。
<binding name="NetTcpBinding_IProfileService" closeTimeout="00:10:00"
openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10"
maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxConnections="10"
maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647"
maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="None">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows" />
</security>
</binding>
我还在 Windows 2008 服务器上启用了 WCF 跟踪,虽然我可以看到“套接字连接中止”活动,但它没有提供更多详细信息。
我现在完全困惑于我的问题是什么,并询问是否有人能够解答这个问题。
I am getting the above error when trying to request data across WCF 4 using netctp. The app has been quite happily working on both my dev machine and the remote Windows 2008 server returning requests for data from Entity Framework. The app still works fine on my dev machine but does not work on the remote windows server when I am requesting a new page I created which is returning a bit more data than all of my other pages.
Before posting this question I have followed all the usual routes of maxing out all my nettcp binding properties incase it was a throttling issue as shown below.
<binding name="NetTcpBinding_IProfileService" closeTimeout="00:10:00"
openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10"
maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxConnections="10"
maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647"
maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="None">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows" />
</security>
</binding>
I have also enabled WCF Tracing on the Windows 2008 server and although I can see the ‘Socket Connection aborted’ activity it doesn’t give me any more details than that.
I am now completely puzzled as to what my issue is and ask if there is anybody out there who may be able to shed some light on the issue.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否在双方(服务器和客户端)上启用了跟踪?您应该在跟踪文件之一中看到错误的来源。
我的猜测是,您可能需要增加 XmlDictionaryReaderQuotas< 的一些值/a>.
Have you enabled tracing on both sides (server and client)? You should see the source of the error in one of the tracefiles.
My guess are that you may have to increase some values of the XmlDictionaryReaderQuotas.