呼叫在2分钟内返回,但未完成操作

时间:2013-08-31 13:03:46

标签: wcf

我们开发了一个Web应用程序。在其中我们调用WCF Web服务方法。 WCF功能将花费5分钟来生成输出。在这种情况下,我们的Web应用程序在2分钟内从WCF调用返回而未完成操作。

Web应用程序web.config:

receiveTimeout="00:10:00" sendTimeout="00:10:00"

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

配置文件中还有另一个控制http请求超时的设置。 默认值为110秒

<configuration>
   <system.web>
     <httpRuntime executionTimeout="110"/>
   </system.web>
</configuration>

参考: http://blogs.msdn.com/b/wenlong/archive/2008/03/10/why-changing-sendtimeout-does-not-help-for-hosted-wcf-services.aspx