Visual Studio Web Deploy to IIS 6
Asked Answered
O

2

12

Has anyone successfully used the new Web Deploy feature of VS2010 to deploy a web site to IIS 6 running on Windows Server 2003?

When I try I get the following error:

Web deployment task failed. Could not complete the request to remote agent URL 'https://myserver:8172/msdeploy.axd?site=mysite'. Unable to connect to the remote server. No connection could be made because the target machine actively refused it.

I can deploy locally (from VS installed on the server to IIS on the server) and the World Wide Web Publishing Service is running. However, there is no process listening on port 8172. Is there supposed to be one?

Ovipositor answered 9/11, 2010 at 19:35 Comment(0)
D
28

Your question has been partially answered already but let me try and summarise it in one go. You're on Windows Server 2003 which means IIS6. Whilst IIS6 can be published to via Web Deploy, you must use the Web Deployment Agent which means the end point you're publishing to should look something like this:

http://myserver/MsDeployAgentService

Note this is not an HTTPS address and does not explicitly specify a port. Also, the account publishing to this endpoint must have admin rights on the server (nasty, but necessary). Finally, make sure the "Web Deployment Agent Service" is actually running because it's not set to start automatically by default.

Your example is for Windows Server 2008 running IIS7 where the IIS Deployment Handler can be used (incidentally, the Web Deployment Handler can also be used against IIS7).

Have a look at this post of mine: You're deploying it wrong! TeamCity, Subversion & Web Deploy part 3: Publishing with Web Deploy.

Defibrillator answered 6/12, 2010 at 22:43 Comment(3)
I'm having the opposite problem (see https://mcmap.net/q/910433/-msdeploy-to-iis6-via-wmsvc). I can deploy via VS2010, but not via msdeploy.exe. Any thoughts?Silverman
The lack of https means that this is not a secure connection - correct? What all is being sent in the open? My passwords? Passwords in configuration files?Sphacelus
this actually helped, on my IIS 6 instance the proper url was: myserver/MsDeployAgentServiceJapan
G
3

Web Deploy uses 2 means of communications: MSDeploy Agent (service) on IIS6+ and WMSvc handler on IIS7+. In your case the URL suggests that you are trying to use the handler, which won't work for IIS6. You dont need to use msdeploy.axd... in the url

Make sure MSDeploy agent is started on the remote machine: net start msdepsvc

Gratianna answered 15/11, 2010 at 17:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.