Author: archirex | Posted on: 5/4/2009 12:53:21 PM | Views : 254

I have set up a ScriptService as described in Joe Stagner's video http://www.asp.net/learn/ajax-videos/video-79.aspx.

It works fine for most of my needs, but one WebMethod I made takes a while to collect the records it needs so the OnTimeout method in the client is executing. How do I change the timeout period so my OnCompleted method can execute?
The results of my WebMethod are returned occasionally when it has a smaller set of records to collect, so I believe everything else is set up right.

I've tried

<code>Service.set_defaultTimeout(1000*60);</code> and

<code>Sys.Net.WebRequestManager.set_defaultTimeout(1000*60);</code>

before the call to the WebMethod.

In the Web.config I've tried:

<httpRuntime executionTimeout="3600"  />
Go to the complete details ...