ASMX Web 服务超时增加
我正在 IIS 7 上运行 ASMX Web 服务。客户端是 silverlight 应用程序。我向 Web 服务发出几个异步文件请求,并在 AsyncCompleted 上处理它们。在发出所有异步请求后的某个时间,我收到以下超时消息。如何增加超时时间。
我尝试在托管 silverlight 应用程序的 ASP.NET 项目的 web.config 中添加以下内容。
<httpRuntime executionTimeout="12000"/>
(当我同步执行请求时,不会发生超时,但同步操作非常慢。)
The HTTP request to 'http://localhost:5080/Service1.asmx' has exceeded the
allotted timeout.
I am running an ASMX webservice on IIS 7. The client is a silverlight application. I am issuing several asynchronous file requests to the webservice and processing them on AsyncCompleted. Sometime after all the async requests have been issued, I get the following timeout message. How can the timeout be increased.
I tried adding the following in the web.config of the ASP.NET project that is hosting my silverlight application.
<httpRuntime executionTimeout="12000"/>
(This timeout is not happening when I do the requests synchronously, but synchronous operations are very slow.)
The HTTP request to 'http://localhost:5080/Service1.asmx' has exceeded the
allotted timeout.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅以下来源:
See these sources:
因为这是 silverlight 应用程序,所以我怀疑我的建议是否有效。
只需尝试创建 Web 服务的对象,然后将超时值增加到您想要的秒数。
下面的代码可能会有所帮助
,请告诉我这是否有效。
Because this is the silverlight application i am in a doubt if my suggestion will work.
Just try, to create the object of the webservice and then increase the time out value to what ever seconds you want.
Below code may be helpful
Just let me know if this works.