I recently set up MS Webdeploy for the application team to be able to publish/deploy from their prelife environment to production. After the necessary configuration, one of the developer reported the error below
In order to resolve this error, I checked the Event Viewer to get more details about the error
Open Application and Service Logs > Microsoft > Windows > WebDeploy.
The webDeploy log indicates that WDeployConfigWriter user was unable to log on.
When webDeploy was installed, it sets up two local accounts WDeployConfigWriter and WDeployAdmin. These accounts are use to give permissions/priviledges to setup IIS sites and modify the applicationHost.config.
The passwords on these accounts are set to expire and user must change password on next logon
Setting the accounts to not expire and for user not to change the password on the next logon resolve the issue.