Reading Time: < 1 minute

To disables ASP.NET certain configuration settings such as trace output, custom errors, and debug capabilities.

Set retail=”true” in your machine.config in the production server



<deployment retail=”true”/>



It will force the ‘debug’ flag in the web.config to be false, disable page output tracing, and�
also force the custom error page to be shown to remote users rather than the actual exception or error message

Configurable Locations Machine.config
Requirements IIS 6.0.NET Framework 2.0

Visual Studio 2005

Note: Important

This value can only be set at the machine level, not at the application level, so do it only Production server.


Communities Tagged : Technology
Tagged: Performance , debug , .Net

One Response to “Deployment Element – force the ‘debug’ flag in the web.config to be false”

  1. A, Sundara Rajan Says:

    Thanks for the information

Published by NS, Jenkins on 16 Dec 2009 at 03:44 pm