I'm attempting to update the sessionState sqlConnectionString value for a site with appcmd, via the following:
appcmd set config "SiteName" /section:sessionState /sqlConnectionString:Server=connectionString /commit:site
This is the result returned:
Applied configuration changes to section "system.web/sessionState" for "MACHINE/
WEBROOT/APPHOST/SiteName" at configuration commit path "MACHINE/WEBROOT/APPHOST/
SiteName"
ERROR ( hresult:c00cee2c, message:Failed to commit configuration changes.
)
The site's web.config is not updated after running the command. The issue feels like a file permissions thing, but I haven't been able to find any details related to the error code. A few notes:
* "SiteName" and "sqlConnectionString" are dummy values for the purpose of this post.
* The command prompt is being run as Administator
* The account logged in is in the Administrators group
* The site's web.config file permissions are set to full control for System, Administrator, Users, and IIS_IUSRS (as a test)
* The WWW Publishing service is in the stopped state
* Environment is Windows Server 2008 64bit