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.
3. Look for this code:
<compilation debug="true" targetFramework="4.0" />
4. Change the “Compilation debug” to “False”:
<compilation debug="true" targetFramework="4.0" />
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!