When you perform a Web Deploy operation that requires administrative permissions, you receive an error message similar to the following:
An error occurred when committing changes to the IIS Configuration System
The identity performing the operation was ‘<domain\username>’.
Error: Filename: \\?\C:\Windows\system32\inetsrv\config\applicationHost.config
Error: Cannot write configuration file due to insufficient permissions
The user executing the operation does not have sufficient rights to access the ApplicationHost.config file and perform changes. For example, the error may occur in a Hosted scenario when the person executing the command is not the Administrator of the target hosting machine. By default, IIS requires administrative privileges to make configuration changes to the ApplicationHost.config file.
To resolve this problem, use one of the following methods depending on how the Web Deploy operation is being run:
Scenario 1: Web Deploy operation run from a command line using Msdeploy.exe:
Verify that the account performing the operation has the following permissions:
Warning: Granting these permissions to a non-administrator user will allow the user to access any IIS setting. This may not be secure for some environments. Microsoft recommends using the Web Deployment handler and delegation for non-admin scenarios.
Scenario 2: Web Deploy operation performed using delegation via the Web Management Service (WMSVC):
Verify that the account configured in the delegation rule has the following permissions:
NOTE: The identity of the account will depend on how the Delegation Rule was configured and will be one of the following:
Article ID: 2023852 - Last Review: 04/20/2010 18:59:00 - Revision: 5.0
var varClickTracking = 1; var varCustomerTracking = 1; var Route = "76500"; var Ctrl = ""; document.write("