To resolve this behavior, use any of the following three methods to increase the IIS server
ScriptTimeout setting:
Method 1
Increase the time that is allowed to process ASP scripts for a particular Web site. To do this, change the metabase value in IIS:
- Start Internet Services Manager.
- Right-click Default Web Site (or the site that has the problem), and then click Properties.
- On the Home Directory tab, under Application Settings, click Configuration.
- On the App Options tab, increase the ASP Script Timeout value to a number that is high enough to prevent script timeouts.
Method 2
Increase the time that is allowed to process ASP scripts for all Web sites. To do this, change the metabase value in IIS:
- Start Internet Services Manager.
- Right-click Computer_Name where Computer_Name is the name of your computer, and then click Properties.
- In Master Properties, click WWW Service, and then click Edit.
- On the Home Directory tab, under Application Settings, click Configuration.
- On the App Options tab, increase the ASP Script Timeout value to a number that is high enough to prevent script timeouts.
Method 3
Use the
Server.ScriptTimeOut property to programmatically increase the
ScriptTimeOut property value at the page level in ASP.
For example, if you want 3 minutes to pass before script processing times out, add the following line to the ASP page:
Server.ScriptTimeout = 180
NOTE: When you set the script timeout at the page level, you cannot set it to less than the metabase value in IIS, which is 90 seconds by default; however, you can set the script timeout to a value that is higher than the metabase value.
For example:
- If you do not change the metabase default, and you code the following
Server.ScriptTimeout = 20
the ScriptTimeOut value is 90.
-or- - If you code the following
Server.ScriptTimeout = 120
the ScriptTimeOut value is 120.