WCF服务在指定的超时值超时之前超时

时间:2014-07-24 22:32:10

标签: c# wcf

我有一个由我的控制台应用程序调用的WCF服务。控制台应用程序设置为每天运行一次的Windows中的计划任务。控制台应用程序调用WCF服务操作,操作需要很长时间,控制台应用程序收到的错误是

The request channel timed out while waiting for a reply after 11:59:59.9050000. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout

我已经在12小时内设置了所有4次超时,但仍然在执行的第一分钟内超时,我收到上述关于超时的错误,表示它一直在等待11:59:59.9050000但是我知道它没有等待更多超过1分钟。有谁知道为什么?

以下是我app.config中的绑定属性:

    <binding name="HoldbackEndpoint" closeTimeout="12:00:00" openTimeout="12:00:00"
      receiveTimeout="12:00:00" sendTimeout="12:00:00" allowCookies="false"
      bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
      maxBufferPoolSize="524288" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"
      textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"
      messageEncoding="Text">
      <readerQuotas maxDepth="999" maxStringContentLength="2147483647"
        maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
      <security mode="None">
        <transport clientCredentialType="None" proxyCredentialType="None"
          realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
      </security>
    </binding>

0 个答案:

没有答案
相关问题