This article mainly describes how to set the run time-out of the ASP, including the global timeout time, the single site timeout, the single page request timeout time, the need for friends can refer to the following
Global Timeout Time
If you have more than one Web site on the server and want to set the time-out uniformly, you need to set the Executiontimeout property value in the Machine.config file.
The Machine.config file is located in the%systemroot%\microsoft.net\framework\%versionnumber%\config\ directory.
For example:
<executiontimeout= " maxrequestlength"= "4096" useFullyQualifiedRedirectUrl= "false" minfreethreads= "8" minLocalRequestFreeThreads= "4" apprequestqueuelimit= "/>"
single site time-out
Set HTTP request run time in the Web. config configuration file:
< system.web > <maxrequestlength= "102400" executiontimeout= "720" /> </ system.web >
Set here for 720 seconds, the front property maxRequestLength is generally used for user upload file limit size! The default is typically 4096 KB (4 MB).
single page request time-out
For a single page, you can use Server.ScriptTimeout to set timeouts.
120
Note: If the Debug property is set in Web. config, for example: <compilation debug= "true" targetframework= "4.0" >
At this point, ScriptTimeout will be ignored.
Set the run time-out period for an ASP page to a single page and site