I'm trying to get msdeploy
installed and set up. I've installed the remote service on the web server, but all my tests are giving me a 401 unauthorised error
. The server is Windows 2008 R2.
I'm testing a very simple msdeploy command:
msdeploy -verb:dump -source:contentPath=c:\inetpub\wwwroot\MyApp,computerName=,userName=Domain\msdeploy,password=MyPassword
And the error:
Error: Object of type 'contentPath' and path 'c:\inetpub\wwwroot\MonApp' cannot be created.
Error: Remote agent (URL http:///MSDEPLOYAGENTSERVICE) could not be contacted. Make sure the remote agent service is installed and started on the target computer.
Error: An unsupported response was received. The response header 'MSDeploy.Response' was '' but 'v1' was expected.
Error: The remote server returned an error: (401) Unauthorized.
Error count: 1.
I created a user called msdeploy and I added it to the local admins group on the server.
I've checked: