Quantcast
Channel: Web Deployment Tool (MS Deploy)
Viewing all articles
Browse latest Browse all 663

401 Unauthorized

$
0
0

Hello

I'm trying to use msdeploy from the command line but I get an 401 unathorized but it works in VS2010, here the configuration:

And here the msdeploy command with parameters:

"C:\Program Files\IIS\Microsoft Web Deploy V3\\msdeploy.exe" -source:package='c:\temp\test\test.zip' -dest:auto,wmsvc='https://TestServer:8172/msdeploy.axd?site=Default+Web+Site/Test',userName='Test',password='Test',includeAcls='False' -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -allowUntrusted -setParamFile:"c:\temp\test\test.SetParameters.xml"

And the error message

Info: Using ID '4e06009a-fa71-4774-bfd8-78b88a2b28ee' for connections to the remote server.
Error Code: ERROR_USER_UNAUTHORIZED
More Information: Connected to the remote computer ("TestServer") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.
Error: The remote server returned an error: (401) Unauthorized.
Error count: 1.


From MS Deploy troubleshooting:

ERROR_USER_UNAUTHORIZED
Diagnosis - This error code can surface because of a number of different reasons. It typically indicates an authentication or authorization problem, and can happen because of any of thee following reasons:
  • User does not exist
  • User does not have IIS Manager access to site if connecting using Web Management Service
  • Site does not exist
  • Password is incorrect
Resolution - If connecting using the Web Management Service:
  • Verify that the username and password are correct
  • Verify that the site exists
  • Verify that the user has IIS Manager Permissions to the site's scope

The username and password are correct, the "site" exists (Default Web Site/Test) and the user has IIS Manager permission on "Default Web Site".

What is wrong?


Viewing all articles
Browse latest Browse all 663


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>