How to Increase or Decrease the Execution Time When Processing a File in Your ASP Application

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

Looking for quality ASP Web Hosting? Look no further than Arvixe Web Hosting!

Happy Hosting!

Rodolfo Hernandez

Tags: , , , , , , , , , , | Posted under Acquia Drupal, DotNet/Windows Hosting | RSS 2.0

Author Spotlight

Rodolfo Hernandez

I like photography and reading books. Currently working for Arvixe as Elgg Community Liaison. Elgg Security Expert Web Security Expert CEO of UDP SW Social Web

Leave a Reply

Your email address will not be published. Required fields are marked *