Wednesday, June 8, 2016

How to prevent request time out in large file upload operation in Asp.net Application

the user encounter a request time out issue when they try to upload a large size file. the file size is 50MB. the root cause is the upload speed is too slow. it had to take extra time to upload the file to server.

by default, the execution time is only 110 seconds. when the process time exceeded the limit. it will cause time out issue. we should adjust the httpRuntime Element to increase the execution timeout.

for more detail information regarding the httpRuntime element. please visit the following link.
 https://msdn.microsoft.com/en-us/library/e1f13641%28v=vs.85%29.aspx


in my case. i had to increase the execution timeout to 12 minutes

 <httpRuntime maxRequestLength="2097151" executionTimeout="720"/>

No comments:

Post a Comment