I find this tip very useful: Setting deployment retail="true" in the system.web tag in the web.config will force the debug flag to be "false". It will also force the custom error message page for the users and disable page output tracing. This is useful when the application is going to a production enviroment.