Downloading Large files from File System storage timing out
We have just launched a new website using Sitefinity 6.2 and hosted on an Azure VM.
We have been receiving a lot of calls from our website visitors trying to download large files (50-150MB) from the new website, complaining it is taking a very long time, it times out and/or it doesn’t download completely, resulting in a corrupted file.
In one particular case that I was assisting with, a person tried to download a 60MB file from our website (being stored in Sitefinity under ‘File System’, not ‘Database’), and she kept getting ‘Network errors’ relating to the download in her browser. (see screenshot here: screencast.com/.../QlfiTLLn)
When we checked the error logging on our server, we noticed it was returning this error in relation to that specific download request:
System.Web.Exception HttpException (0x80004005): Request timed out.
I then placed that same 60MB file external to Sitefinity in two places:
Hi,
I am going to post the ticket reply here so it may help other users who encounter a problem like this one:
This is happening because the request is timing out after 110 seconds and if the speed of the download was slower, the file was not being downloaded in full. To prevent this, find the following line in the web.config:
<
httpRuntime
executionTimeout
=
"43200"
maxRequestLength
=
"102400"
maxUrlLength
=
"102400"
maxQueryStringLength
=
"102400"
requestValidationType
=
"Telerik.Sitefinity.Security.Claims.CustomRequestValidator, Telerik.Sitefinity"
/>
I am experiencing the same issue on a SF8 install, EXCEPT, my downloads work fine in Chrome & Firefox, small downloads are fine in IE, but larger ones are not.
Anyone got any clues?
Thanks,
Mat.