ASP Timeout on Large Files or Slow Connection
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
Comments
Maximum Value
I 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 back when I asked the MM newsgroup how long the value was, I was told session.timeout = "30" ment 30 minutes no 30 seconds. I take it I was mis-informed?
RE: Maximum Value
Ryan,
I think you are confisung two different options here. We are talking about ScriptTimeout and you are talking about Session Timeout.
The Session Timeout does not effect the upload timeout in any way.
I get the ASP Timout Error when I try to reload/refresh the page
Users automatically log off after some time while inserting a record
I 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 must be something somewhere that you can change so that they can stay logged in for unlimited time.. Can someone help me with this?
Sander van Aalst (NED)
aalst@kabelfoon.nl
You must me logged in to write a comment.