Error: Request timed out.

G

Guest

Hi,
My ASP.NET application calls a web service (in the same project) that
queries a SQL server by using a data adapter to fill a dataset. The
dataadapter may fill more than one dataset to build the resulting dataset.
This can take several minutes (I think up to approximately 10 minutes) before
a result set is ready. The result set is displayed in a datagrid. It works ok
in VS.NET but when the project is deployed, the time consuming queries
generate the following error "Request timed out"
I have set the httpRuntime executionTimeout="900" in the web.config but it
does not make any change.
Does anyone know how to solve this problem? Thanks in advance for any replies.

Dorte
 
K

Ken Dopierala Jr.

Hi Dorte,

In your page load you can put:

Server.ScriptTimeout = 3000

This will cause the page not to time out for 50 minutes. The ScriptTimeout
property is the amount of time in seconds before your page times out. Good
luck! Ken.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top