Set the run time-out period for an ASP page to a single page and site

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.