我在IIS 7上运行ASMX IIS服务。客户端是silverlight应用程序。我向them服务发出了几个异步文件请求,并在AsyncCompleted上处理它们。在发出所有异步请求后的某个时间,我收到以下超时消息。如何增加超时。
我尝试在托管我的silverlight应用程序的ASP.NET项目的web.config中添加以下代码。
<httpRuntime executionTimeout="12000"/>(当我同步执行请求时,不会发生此超时,但同步操作非常慢。)
The HTTP request to 'http://localhost:5080/Service1.asmx' has exceeded the
allotted timeout. 发布于 2011-06-25 00:49:24
请参阅以下来源:
发布于 2013-05-09 20:55:40
因为这是silverlight应用程序,所以我怀疑我的建议是否有效。只需尝试创建want服务的对象,然后将超时值增加到所需的秒数即可。下面的代码可能会有帮助
ConsoleApplicationFor2Groups.AdServices.ADService adser = new ADService();
adser.Timeout = 100000; // this time is in milliseconds只要让我知道这是否有效。
https://stackoverflow.com/questions/6466242
复制相似问题