Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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 .

share|improve this answer
As mentioned in my original question, the windows user that we currently use is a member of the Administrators group (which is also what you're suggesting as the quick fix). My question was why it doesn't work... – Trex May 28 '12 at 16:05
It might be possible that you have all the security configured with IIS users instead of Windows users , please have a look at the first link .If you're deployng from Visual Studio , please have a look here… . Please check on IIS what is the authentication mode (Authentication) and IIS Manager Users. – Alex H May 29 '12 at 6:38

Check the access rights on Application Site and folder, go to Start Page/server(Name)(account)/Management. Or on SITE/APLICATION Management.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.