In the IIS configuration tools, right-click on your virtual directory where your ASP script is running and choose "Properties". On the main tab of the property sheet, click Configuration under Application Settings.
If this button is not present, click on the Create button to
create an application first.
On the Application Configuration dialog, select the App Options tab. Under ASP Script Timeout,
enter a large number such as 900.
In Windows 2003 , there is an additional timeout setting. IIS 6.0 has a file named metabase.xml which resides in the folder C:\Windows\system32\inetsrv . By default, this file has this entry:
AspScriptTimeout = "90"
You can change that to a higher value such as 900 seconds, and save the file. (You may need to restart IIS for the change to take effect.)
Under ASP.NET , the timeout error message reads as follows:
Exception Details: System.Web.HttpException: Request timed out.
In .NET, there is an additional setting for this. The default script timeout is set to 90 seconds
by the httpRuntime section of the machine.config file. You can change this setting to affect all
applications on your site, or you can override the settings in your application-specific
web.config as follows:
<system.web>
<httpRuntime executionTimeout="900" />
</system.web>
The .NET config files are usually stored in the folder C:\Windows\Microsoft.NET\Framework\[version]\Config
where [version] is the version of the .NET Framework such as v1.1.4322. You may need to restart IIS for such changes to take effect.