Webdeploy Issues: Cannot deploy unless admin

2019-02-16 12:20发布

问题:

I am trying to deploy a site using msdeploy and cannot get it to deploy under an IIS user account. My admin account is able to deploy successfully.

Steps I have taken:

  1. Created IIS user account
  2. Give the account access to the relevant website
  3. Setup deployment for the site granting the iis user account permissions to deploy
  4. Ensured that the WMSVC has full rights to the physical folder
  5. Add the IIS user account to the relevant rule in Management Service Delegation

I get the following error back:

Unable to perform the operation. Please contact your server administrator to check authorization and delegation settings.

回答1:

Turns out it was an expired password for the WDeployConfigWriter account.



回答2:

Following changes fixed my issue.

Start >> Administrative tools >> Computer Mangement. 

There is a user called WDeployConfigWriter. Set to password never expired and updated in IIS as per the below link.

https://blog.workinghardinit.work/2011/07/18/wdeployconfigwriter-account-issues-trouble-shooting-web-deploy-2-0-with-lessons-learned/