WebDeploy - just can't get it to work

I installed Web Deploy 2.1 on a 2008 R2 server running under VMWare.

In IIS Manager (Management Service Application), I see that the “Enable Remote Connections” checkbox is checked and the port is set to 8172. In the “IIS Manager Permissions” section, I added a Windows account (CORP \ ekkis) and in the Authentication routine "(for IIS) I turned on Windows Authentication.

I also disabled the firewall.

So, from the command line, I test the system like this:

C:\Program Files\IIS\Microsoft Web Deploy V2>msdeploy -verb:dump -source:contentPath=\temp,wmsvc=192.168.0.70,username=CORP\ekkis,password=MyPass,authType=Basic -allowUntrusted=True 

and get the following:

 Info: Using ID '9b954a0f-ff07-4e77-ba2c-d27472f5fda0' for connections to the rem ote server. Error Code: ERROR_USER_UNAUTHORIZED More Information: Connected to the destination computer ("192.168.0.70") using t he 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 sit e. Error: Object of type 'contentPath' and path '\temp' cannot be created. Error: The remote server returned an error: (401) Unauthorized. Error count: 1. 

I also tried installing from Visual Studio 2010 from the host OS using the following service URLs (I did not find the correct documentation on how to configure this URL):

 https://192.168.0.70/ https://192.168.0.70:8172/ https://192.168.0.70:8172/MsDeployAgentService/ https://192.168.0.70/MsDeployAgentService/ 

I also tried unsafe versions, but just can't get it to work. What is the correct format for the url? and what permissions do i miss?

VS errors varied depending on how I try to do this, but below is a sample:

 Could not complete the request to remote agent URL 'http://192.168.0.70:8172//MSDEPLOYAGENTSERVICE'. The underlying connection was closed: An unexpected error occurred on a receive. Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. An existing connection was forcibly closed by the remote host Publish failed to deploy. 

there really needs to be a guide to do this (yes, I ruined myself blue in the face)!

thanks - ekkis

+4
source share
1 answer

ok, I realized that the correct url is:

 https://192.168.0.70:8172/MsDeploy.axd 

and that having Windows Authentication turned on doesn't seem to matter. In addition, the presence of my account in the Managers list also does not matter.

therefore, the whole end of the work was fully operational (I turned off the Web Deployment Agent service). it was only the url in which I was wrong.

+4
source

All Articles