Web deploy error ERROR_DESTINATION_NOT_REACHABLE

Added the rule to security group for port 8172 and it started working. But i have no clue why it was working from Visual studio before and not from command prompt.


To successfully deploy your website on to windows server using Web deploy, make sure the following is in place.

  1. The site names must be exactly matched in both Visual studio and on IIS server

  2. Make sure the sever installed with the same.net framework as your visual studio (e.g ASP, ASP.net 4.5…)

  3. Make sure port 8172 is open on the server(8172 is used for web deploy)