ASP Timeout on Large Files or Slow Connection
(June 11, 2001)
Question:
I get the following error:
Active Server Pages, ASP 0113 (0x80004005)
The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration
tools. (or HTTP 500 Internal Server Error)
Answer:
The default timeout on an ASP script is 90 seconds. If your upload takes longer than that you will get the error above. This will happen often when the user is using a slow connection.
We have a nice extension that will change the timeout to a specified time for you. To increase the timeout, the extension adds the following ASP code on top of your page (where 360 is specified by you):
<% Server.ScriptTimeout = 360 %>
This will increase the timeout to 360 seconds = 5 minutes. You can change this value to suite your needs.
For more details see Server.ScriptTimeout docs
George Petrov
George Petrov is the Founder of the highly successful Zones: DMXzone.com, FWzone.net, FLzone.com, CFzone.net, DNzone.com and FlashFiles.nl
He has developed the comprehensive Dynamic Zones Content Management System that is the brains driving them and constantly supports their online communities with his extensive and valuable knowledge.
He is a renowned web development 'Guru' who has written many articles and extension for Adobe's Dreamweaver.
George Petrov is also the CEO and Founder of Dynamic Zones and also very proud of his children Sofie, Victor and Alexander!
User Reviews
Total of 6 reviewsSomeone Please help!
Written by George Morales on September 1, 2004Dear ANYONE, I've been trying to upload files to a particular site and at the end of each upload I get this message: 'Active Server Pages error 'ASP 0113' Script timed out /upload/progressupload.asp The maximum amount of time for a script ...
RE: Maximum Value
Written by Josh Cooper on May 2, 2002Ryan, You can't set a session timeout to an hour, but you can jimmy-rig it.If you use a META REFRESH tag in an invisible frame that reloads a page in the invis frame it will reset your session time.
Users automatically log off after some time while inserting a record
Written by Sander van Aalst on February 18, 2002I doon't know if this is the same, but anyway. Users need to log on to my page. But when they insert a record, and if this takes a while (to fill in everything) they will get a message that they are not logged on. So my guess is that there's there ...
I get the ASP Timout Error when I try to reload/refresh the page
Written by Karthik Rajan on November 1, 2001Can some body help?
RE: Maximum Value
Written by George Petrov on March 31, 2001Ryan, I think you are confisung two different options here. We are talking about ScriptTimeout and you are talking about Session Timeout. ScriptTimeout is the value in seconds that the current asp page is allowed to run (see the Server.Timeout ...
Maximum Value
Written by Ryan Galloway on March 31, 2001I need a session to remain active for 1hour but found I could not use a value above 1450 or there abouts which would translate to only 25mins max. If i used larger values, the page returns an error when requested from server (iis 5). Also, a while ...







