Script Timeout


ASP's ScriptTimeout property sets the length of time in seconds that ASP pages will allow for a script to execute. The default value of this property in IIS is 90 seconds. In a file upload, the ASP page must execute for the duration of the upload. If your user is transferring information over a slow line or is transferring a large quantity of information, it is easy to exceed this limit.

To increase the ASP ScriptTimeout in IIS:

  1. Right-click the application that will perform uploads, and select Properties.


  2. Select the Virtual Directory tab and click Configuration.


  3. Select App Options.


  4. In ASP Script Timeout, enter a value in seconds.

To increase the ASP ScriptTimeout in script, set the property Server.ScriptTimeout. For example:

<% Server.ScriptTimeout = 300 %>

The FileUp registry key DynamicAdjustScriptTimeout allows you to ensure that large uploads and downloads will not be timed out. If this key is set to True, IIS's ScriptTimeout value will be increased until an upload or download is complete.

To enable DynamicAdjustScriptTimeout:

  1. Open the Start menu and select Run...


  2. Enter regedit and click Ok.


  3. Open the folder HKEY_LOCAL_MACHINE\SOFTWARE\Software Artisans\SA-FileUp\Parameters.


  4. Double click DynamicAdjustScriptTimeout. An Edit DWORD Value dialog will open.


  5. In the Value Data field, enter 1.

Copyright © 2010 SoftArtisans, Inc. All rights reserved.