Adfa

Disable debugging on prod servers with retail mode

Published: 9/9/2012 10:16:04 PM

After thinking about it for some time I finally decided to turn on retail mode on my web server. Retail mode is a setting in machine.config that will disable a few debugging-related features in ASP.NET applications, even though the application might have enabled them explicitly. Turning on retail mode is a fast and easy way to increase both performance and security on your server.

Retail mode is turned on by setting the retail attribute to true on the system.web/deployment element.

<configuration>
    <system.web>
          <deployment retail="true"/>
    </system.web>
</configuration>

More information about this setting can be found on MSDN: deployment Element.

A more detailed description of the setting (including the reasons why it should be turned on) can be found here: Inside Microsoft.com: Management and Delegation of ASP.NET

Got comments? Post them here!

Name:

Name is optional but recommended.

E-mail:

E-mail is optional and will not be shown in the comment. It will only be used if the comment requires me to contact you directly.

Comment:
Enter text:


Popular tags
Security (5)
IIS (4)
Troubleshooting (3)
MVC (2)
TFS 2012 (2)