I was scripting in old school ASP version 3.0 on IIS6 this week and had a script that needed a long time to run and kept timing out.
So I asked the question… What is the maximum script timeout setting for ASP on IIS?
After a lot of digging, I found out the answer.
The maximum value for ScriptTimeout is 2^32-1, or 2147483647.
If you try to set it to 2147483648 or higher, you will get the following error:
Microsoft VBScript runtime (0x800A0006)
Overflow: ‘server.scripttimeout’
Normally you would script it out like this.
<%
Server.ScriptTimeout = 180
%>
Now with the maximum value, it looks like this.
<%
Server.ScriptTimeout = 2147483647
%>
As a friendly tip, you can increase your timeout to get through some tough times but try to make your code and databases faster if you can to make a better user experience.
For me, the real solution was that my database was not performing at its best. So needed to create additional indexes on more fields which increased the performance and speed of the script.
Hope this helps somebody out.
Happy coding!