Active Server Pages sets a limit for the amount of time that a given page can execute. The rationale is that if a page is taking too long to execute and return results, the user will get frustrated and press the browser's Stop button.
By default with all versions of IIS, this timeout is set to 90 seconds. However, in the case of a file upload, the 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.
The Script Timeout can be adjusted automatically during the upload by setting a registry key:
By setting this value to 1, SA-FileUp will automatically increase the timeout value as long as new data is coming from the browser.
With IIS 3, this limit is adjustable for the entire web server only. With IIS 4 or later, it is possible to set the timeout for the entire server, a virtual server, or a specific application. To set the Script Timeout for a single page, you can use the Server.ScriptTimeout property in ASP.
If you have only a few pages that perform uploads, use the Server.ScriptTimeout property. If you have many pages, change the appropriate server settings.
By ASP Script:
Use the Server.ScriptTimeout property within your ASP script. For example:
<% Server.ScriptTimeout = 3600 %>
Edit the Registry using REGEDT32. (From the Start menu, choose Run. Type REGEDT32 and click OK.) Modify the ScriptTimeout value:
Double-click the ScriptTimeout value, and set the Radix to decimal. You can now enter an appropriate value in seconds. For example, 3600 seconds is equivalent to one hour.
With IIS 4 or later:
Using the Microsoft Management Console, select your web application that will perform uploads. Right-click to select the properties. From the Properties dialog, click on the "Configuration" button. Choose the "App Options" tab. Set the "ASP Script Timeout" to the desired number of seconds. For example, 3600 seconds is equivalent to one hour.
|Previous Page||Next Page|