To increase request timeout only on a specific web page

Is it possible to increase the request timeout for only one specific web page? I am working on ASP.Net 4.0, and I need one specific page to have a longer request timeout, since it is responsible for starting a long process. Thank you

+7
source share
2 answers

Use Web.config:

<location path="Page.aspx"> <system.web> <httpRuntime executionTimeout="180"/> </system.web> </location> 
+10
source

This is an old thread, but it should be emphasized that updating the execution timeout of a page or the whole machine should also be accompanied by a compilation debug flag set to false, otherwise the timeout element is ignored.

In addition, depending on whether you use the AJAX update panels, you may also need to look at the AsycPostBackTimeout flag of the ScriptManager itself - it depends on how your timeout appears. Ajax response timeouts will be displayed as error messages logged in the Javascript Console, and they manifest themselves as ajax operations that "die on the vine" depending on how you handle things.

Debugging = "false" bit is probably what bothers the gentleman above who has problems on his Amazon server, but not locally.

Some searches also show that some people have noticed that localhost also handles things differently, so you may need to experiment with this.

0
source

All Articles