1

我正在尝试解决我的应用程序在客户站点上运行的问题。该应用程序使用 WCF 发送和检索文件。它运行完美,但在客户端从同一网络中的另一台机器开始运行后开始显示以下错误:

00:00:57.6797680 后等待回复时请求通道超时。增加传递给 Request 调用的超时值或增加 Binding 上的 SendTimeout 值。分配给此操作的时间可能是较长超时的一部分。

配置中的所有超时都已增加到 10 分钟,没有任何区别。

不幸的是,我无法使用 VS 在本地运行它来调试它。

这是绑定:

<customBinding>
  <binding name="MyServiceSoap12">
    <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
        messageVersion="Soap11WSAddressingAugust2004" writeEncoding="utf-8">
      <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
          maxBytesPerRead="4096" maxNameTableCharCount="16384" />
    </textMessageEncoding>
    <security authenticationMode="UserNameOverTransport" >
      <localClientSettings maxClockSkew="00:10:00"/>
      <localServiceSettings maxClockSkew="00:10:00"/>
      <secureConversationBootstrap>
        <localClientSettings maxClockSkew="00:30:00"/>
        <localServiceSettings maxClockSkew="00:30:00"/>
      </secureConversationBootstrap>
    </security>
    <httpsTransport manualAddressing="false" maxBufferPoolSize="200000000"
        maxReceivedMessageSize="200000000" allowCookies="false" authenticationScheme="Anonymous"
        bypassProxyOnLocal="false" decompressionEnabled="true" hostNameComparisonMode="StrongWildcard"
        keepAliveEnabled="true" maxBufferSize="200000000" proxyAuthenticationScheme="Anonymous"
        realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
        useDefaultWebProxy="true" requireClientCertificate="false" />
  </binding>
</customBinding>

更新:与服务的连接正常 - 该应用程序从同一服务运行其他服务操作而没有问题。一项特定操作(检索文件)导致错误。

你会从哪里开始寻找?

谢谢!

4

1 回答 1

1

你要发送一个大文件吗?

您是否增加了 SendTimeout 属性?(我没有在你的配置中看到它)

于 2012-08-01T17:16:20.763 回答