Wednesday, September 10, 2008

Disable Debug & Trace in One-Step

For security and performance reasons, don’t put websites into production with debug enabled, custom errors disabled, or trace enabled.

On your production server, add thefollowing element inside the system.web section of your machine.config file:

<deployment retail=“true”/>

Adding this element disables debug mode, enables remote custom errors, and disablestrace. You should add this element to the machine.config file located on all of your productionservers.

No comments:

 
Best viewed in Internet Explorer 8.