操作在System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest请求)中超时

时间:2016-01-05 09:06:15

标签: c# asp.net .net web-services timeout

WebSevice TimeOut执行长时间运行的任务时发生,例如。在服务调用中执行存储过程。

要克服我已尝试在Web服务代理类

中设置超时值
 WebReference.ProxyClass myProxy = new WebReference.ProxyClass();
 myProxy.Timeout = 999999999; //in milliseconds, i.e. 277 Hours

并修改了web.config

<configuration>
<system.web>
<httpRuntime maxRequestLength="999999" executionTimeout="99999999" />

但仍然是同样的例外:

 The Operation has time out at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)

任何想法?感谢。

0 个答案:

没有答案
相关问题