WCF 现有连接被远程主机强制关闭

发布于 2024-12-11 04:07:34 字数 1290 浏览 0 评论 0原文

尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

皓月长歌 2024-12-18 04:07:34

您是否在双方(服务器和客户端)上启用了跟踪?您应该在跟踪文件之一中看到错误的来源。

我的猜测是,您可能需要增加 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文