ASP.NET 2.0 web configuration supports the <deployment> tag which has the retail attribute. The retail attribute when set to true will disable tracing, debugging and detailed errors. This is a very cool tool for the site admins to turn off the settings with the use of a single switch.

You can use the deployment option like below:

<deployment retail = "true" />

 

powered by IMHO 1.3