Thursday, October 16, 2008

The deployment retail=”true” Switch in Maching.config

If you are a server administrator and want to ensure that no one accidentally deploys an ASP.NET application in production with the switch enabled within the application’s web.config file, one trick you can use with ASP.NET V2.0 is to take advantage of the section within your machine.config file.

 

Specifically, by setting this within your machine.config file:

 

configuration

    system.web

          deployment retail=”true”

    system.web

configuration


Thanks,

Nitin Sharma