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
<deployment retail=“true”/>
That’s it. Now this setting will automatically disable the debug mode and tracing on your applications.
Tweet
1 comment:
Do you have any knowledge if setting retail = true in machine.config will show debugging as false (regardless of compile setting in web.config)
HttpContext.Current.IsDebuggingEnabled
I have seen some posts indicating this is an issue but nothing definitive.
Post a Comment