How to Increase or Decrease the Execution Time When Processing a File in Your ASP Application
Written by Rodolfo Hernandez Sunday, 9 December 2012
In this article we will discuss How to increase or decrease the execution time when processing a file in your ASP application.
This problem is caused by the good old TimeOut. You can have a hard time trying to figure out why your file was not uploaded. This occurs because the execution time by default in any ASP application is made for handle small files. To fix this issue, follow these steps:
1. Open the web.config file of your ASP application.
2. Look for the <profile> tag. Below this tag, we will add the httpRuntime element tag. We will increase the timeout to 300 seconds, and the file upload size to 8 MB:
<httpRuntime executionTimeout = “300″ maxRequestLength = “8400″ requestLengthDiskThreshold = “819200″ useFullyQualifiedRedirectUrl = “false” />
What this tag does is configure ASP.NET HTTP run-time settings that determine how a request for an ASP.NET application is processed. The .NET Framework provides a number of different run-time hosts, including the ASP.NET run-time host. When a request comes in, ASP.NET loads the run-time setting into the process that is to handle the request. ASP.NET also creates an application domain for each Web application that will run on a Web server
This Concludes How to increase or decrease the execution time when processing a file in your ASP application