Disable Debugging Mode for ASP applications

In this article I will give you a step-by-step guide on how to Disable Debugging Mode for ASP applicationsOverview

Applications that run with debug mode on, will experience performance issue because all client-javascripts and static images will be downloaded each time the application is loaded. Also, there will be more files in temporary ASP.net files folder. Besides that, the System.Diagnostics.DebuggableAttribute will be added to each page, causing a performance slowdown. On a previous article I demonstrated how to disable debugging mode in Visual Studio before deploying the application on your server. However, after several tests I found out that even if you create a publishing profile, the debug mode will be active, and that’s why we are going to disable it right within the web.config.

Getting Started

1. Open the folder of your deployed project.

2. Open the web.config file of your project.

webconfig file open arvixe hosting windows asp tutorials

3. Look for this code:

   <compilation debug="true" targetFramework="4.0" />

4. Change the “Compilation debug” to “False”:

   <compilation debug="true" targetFramework="4.0" />

set debug mode false webconfig arvixe tutorials asp hosting

5. And that’s it! Debug mode is now off!

This Concludes Disable Debugging Mode for ASP applications

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

Happy Hosting!

Tags: , , , , , , , , , , , | Posted under ASP .NET 4.0 | 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 *