Web Deploy to IIS7 fails with 401 (Unauthorized)

deploymentiis-7msdeploy

We have IIS7 running on Windows Web Server 2008 R2. It's set up to support Web Deploy. It worked fine when we used the default Administrator account.
We recently disabled this account (for security reasons) and are now trying to deploy using another account which is member of the Administrators group.

With this account, the deploy fails with 401 (Unauthorized). More specifically, it says:

Connected to '<IP>' using Web Deployment Agent Service, but could not authorize. Make sure you are an admin on '<IP>'. The remote server returned an error: (401) Unauthorized.

How can I resolve this issue?

Best Answer

Well it's a rights issues : Correct fix :

Quick fix (not recommended ) add the win user that you make deployment with to the administrators group .

Hope this helps .