Changing the ScriptTimeout

The default setting for ScriptTimeout is 90 seconds. For IIS 3.0, it is located in the system registry where we can easily change it to another value. It is advisable to set it to a lower value, and control each script individually.

If the default is set to 90 seconds and we have this entry in our scripts:

 <%Server.ScriptTimeout = 30 %>

It will not work because we cannot set a scripts timeout value to less than the ScriptTimeout setting. But, we can increase it.

To change the ScriptTimeout value, open registry editor, and search for:

 HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW3SVCASPParameters 

and change the ScriptTimeout value as desired. With IIS 4.0/5.0, we have to use the Management Console to change the settings.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: