Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

msdeploy mvc to Windows7 getting ERROR_DESTINATION_NOT_REACHABLE and 404

I'm trying to do msdeploy of a MVC app to a windows7 box, running on command-line. And kept getting this error:

Error Code: ERROR_DESTINATION_NOT_REACHABLE More Information: Could not connect to the destination computer ("192.168.xxx.xxx" ). On the destination computer, make sure that Web Deploy is installed and that the required process ("The Web Management Service") is started. Error: The remote server returned an error: (404) Not Found. Error count: 1.

I've verified both Wmsvc (seems this is being used) and MsDepSvc are running. And firewall are disabled. In the browser when I visit https://192.168.xxx.xxx:8172/msdeploy.axd, I got a Server Error 404, seems a bit further than where the command-line stopped.

Most of instructions on setting up IIS7 and Web deployment I could find online is for MS Servers. Both my local machine and the Windows7 machine has the same version of Msdeploy installed.

like image 857
user1360089 Avatar asked Apr 27 '12 02:04

user1360089


3 Answers

I had exactly the same issue with a VM on Azure, and the solution was to enable first the IIS Management Service and then install Web Deploy (I used Web Platform Installer). Seems that the installation order matters. You can find a blog entry I wrote about this here http://davidjrh.intelequia.com/2012/10/configurando-web-platform-installer-y.html

like image 94
David Rodriguez Avatar answered Dec 04 '22 21:12

David Rodriguez


For non-server operating systems (i.e. Windows 7) the Web Deploy publish via Web Management Service is not supported. Instead you will have to use the Remote Agent Service, this is an admin only publishing service. You can find more info at http://technet.microsoft.com/en-us/library/dd569059(v=WS.10).aspx.

like image 38
Sayed Ibrahim Hashimi Avatar answered Dec 04 '22 22:12

Sayed Ibrahim Hashimi


I had the same issue using MSDeploy to deploy my web application to remote IIS 7.5 web server running windows 7. I have just figured out how to fix the problem today after reading Sayed's post, so I wanna post my solution here for anyone who would run into this problem like me. Try this:

  • Enable IIS Management Service (in control panel >> add or remove features >> add or remove windows features)
  • Install Web Deploy (http://www.iis.net/downloads/microsoft/web-deploy)
  • Open cmd with Administrative privilege, type “net start msdepsvc” to start the “Web Deploy Agent Service”.
  • Check this link in your browser: http://serveraddress/MsDeployAgentService/, if it prompts for username and password, MsDeployAgentService is running on server, go to the next step.
  • In VS, type in http://serveraddress/MsDeployAgentService/ in Service URL while creating publish, instead of https://serveraddress:8172/MsDeploy.axd, and click test connection. It should be ok now.
like image 34
Reverove Likia Avatar answered Dec 04 '22 22:12

Reverove Likia