Article sections
The deployment retail switch is specifically intended for use on live/production IIS servers. It used to help applications run with the best possible performance and least possible security information leakages by disabling the application’s ability to generate trace output on a page, disabling the ability to display detailed error messages to end users, and disabling the debug switch.
1 – Open the machine.config file located in: %systemroot%\Microsoft.NET\Framework\framework version\CONFIG.
2 – Add the line < deployment retail=”true” /> within the section.
3 – If your system is 64-bit, add the same switch to the machine.config located in: %systemroot%\Microsoft.NET\Framework\framework version\CONFIG.