Back to Top
The nuts and bolts for
Creative web development

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

George Petrov

George PetrovGeorge Petrov is a renowned software writer and developer whose extensive skills brought numerous extensions, articles and knowledge to the DMXzone- the online community for professional Adobe Dreamweaver users. His expertise in countless languages and technologies gives inspiration and teach valuable lessons on his website – DMXzone.com which is most popular for its over high-quality Dreamweaver extensions and templates.

See All Postings From George Petrov >>

Share this Article

Comments

Someone Please help!

Dear 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 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."

I have Windows XP Home Edition so I don't have IIS and I have NO CLUE whatsoever on how to use the Server.ScriptTimeout property. I've been searching for days on a solution and cant come up with anything. Nobody gives a clear, in depth, step by step process of EXACTLY HOW to extend pass the default time of 90 seconds. Can someone PLEASE help me??? I would GREATLY appreciate it. Thanks! 

RE: Maximum Value

Ryan,

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

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

I get the ASP Timout Error when I try to reload/refresh the page

Can some body help?
See all 6 Comments