Debug = true/false in web.config  
Author Message
FrankBinoeder





PostPosted: Mon Nov 07 14:13:04 CST 2005 Top

ASP.Net >> Debug = true/false in web.config Is there a way I can have my options set up so that on the production
machine debug=false is always used, but on my dev machine debug=true is
used?

Currently I do not know how to do this, because my web.config file is shared
between both dev and production. In other words if I change it in dev and
then forget to change it back before doing a Copy Web Site command then I'll
accidentially publish the debug=true config setting on the production box.
Any way around this?

Thanks,

Steve

Web Programming197  
 
 
briansMCSD





PostPosted: Mon Nov 07 14:13:04 CST 2005 Top

ASP.Net >> Debug = true/false in web.config Hello Steve,

You should be able to set and lock the attribute in the configuration file
at a parent level to the application. See How to: Lock ASP.NET Configuration
Settings at http://msdn2.microsoft.com/library/ms178693(en-us,vs.80).aspx for
more information.

--
brians
http://www.limbertech.com


"Steve Franks" wrote:

> Is there a way I can have my options set up so that on the production
> machine debug=false is always used, but on my dev machine debug=true is
> used?
>
> Currently I do not know how to do this, because my web.config file is shared
> between both dev and production. In other words if I change it in dev and
> then forget to change it back before doing a Copy Web Site command then I'll
> accidentially publish the debug=true config setting on the production box.
> Any way around this?
>
> Thanks,
>
> Steve
>
>
>