Receiving a request when an error occurs while downloading large files

We have a page that allows users to upload documents (several). When loading takes a long time - either because of the size of the files, or because of slow download speeds, we get an exception saying "Request timeout".

We found that an exception is thrown as soon as the download is complete. Thus, we changed the executeTimeout configuration entry to 6000 seconds. But this error still manifests itself sequentially.

We are launching IIS6, .net 3.5 sp1 (asp.net 2.0).


Update

I can reproduce this problem with relatively small files (multiple files totaling 75 MB)

+4
source share
4 answers

I can’t explain it better than Jon Galloway has , so I won’t try :)

Basically, there are many forces fighting against you when trying to upload large files via HTTP. The moral of this story is this:

Using normal upload methods is not suitable for large files. Instead, you should use a separate method that is designed specifically for large files.

+2
source

Perhaps you should set up a form to accept multi-page data.

0
source

By downloading, I assume what you mean through the .aspx page. You need to install the following:

Server.ScriptTimeout = 9000 'Time in seconds 

Please note that this value is system-wide, so you must save the old value somewhere and reset it to its original value after the download is complete.

http://msdn.microsoft.com/en-us/library/ms524831(VS.90).aspx

0
source

try this <httpRuntime maxRequestLength = "The maximum size you want to upload to KB" executeTimeout = "No seconds for runtime" / "> in web.config

0
source

All Articles