I'm trying to use APPCMD
to set debug=false
in web.config
, per the documentation.
The specific syntax I am using is:
APPCMD SET CONFIG "SITE/VDIR" section:compilation /debug:False /commit:APP
the output is
INFO ( section:compilation, timetaken:219, hresult:00000000, objects:1 )
Applied configuration changes to section "system.web/compilation" for "MACHINE/W
EBROOT/APPHOST/SITE/VDIR" at configuration commit path "MACHINE/WE
BROOT/APPHOST/SITE/VDIR"
Afterwards, debug
still is set to true
.
I have ruled out the file being read only; I have used process monitor to watch appcmd actually write to web.config in the correct location. My environment is Windows 2008 x64, SP2.
I understand that there are many different ways to solve the problem; different config files, doing it myself in xpath, nant, etc, but I'm specifically interested in why APPCMD
does not seem to be working, and to help others who may also be struggling with the tool. Thanks for your help!