To improve the performance of our ASP.NET application, a recommended practice is to make sure that the application is not deployed with Debug=True attribute.
One of my clients had a production server which hosted multiple websites. Although some of the applications were deployed keeping debug=false, however the rest of the applications had the attribute set to true. They now wanted to control the setting from the machine.config file which would apply to all the applications running on that server.
Here’s a technique that most of the users to not know about. In your machine.config, locate the <system.web> section and add the following entry
That’s it. Now this setting will automatically disable the debug mode and tracing on your applications.
Will you give this article a +1 ? Thanks in advance