title: Unable to use MSDeploy from Local to Remote Server
body: <p><a href="https://i.stack.imgur.com/PKhPs.png" rel="nofollow noreferrer">Error image </a>Unable to Remote Deploy my Webservice on to the remote machine from local machine. I have two servers that i would be needing to enable web deployment from local system to remote server Windows 2012 system. Upon searching multiple resources i found below steps that need to be ensured before performing the remote deploy using MsDeploy from Local to Remote . </p>
  
  <ul>
  <li><p>Also Package works fine which is built from Visual Studio if i copy the files on to the remote server  and run the command file it is able to deply the windows service on to IIS locally . But i would need this to be deployed from my local machine to remote server* 
  Steps I tried : </p>
  
  <ol>
  <li>Ensure Web Deploy is installed.</li>
  <li>Remote Services are running.</li>
  <li>Under Management Service in IIS ensure Enable Remote connections
  is enabled.</li>
  <li>Ensure 80 and 8172 Ports are enabled and running ( ran the below steps ) </li>
  <li>Web Deploy is installed on the server that i'm trying to deploy the 
  package. </li>
  <li>I try running the below code and it returns below error :
  Command I provide : 
  <br></li>
  </ol></li>
  </ul>
  
  <p>C:\Users\xxxxx>net start wmsvc <br>
  The requested service has already been started.<br></p>
  
  <p>C:\Users\xxxxxx>net start msdepsvc <br>
  The requested service has already been started.<br> </p>
  
  <p>Command I provide : </p>
  
  <p>C:\Program Files\IIS\Microsoft Web Deploy V3>msdeploy.exe -verb:sync -source:package="C:\Users\xxxxxx\Desktop\" -dest:auto="",ComputerName="https://serveripaddress:8172/MsDeploy.axd",UserName='domain/user',Password='password',AuthType='Basic' -allowUntrusted <br><br>
  Info: Using ID 'someinfoid like :  92c-da-sd-2398as823...... is generated' for connections to the remote server.<br></p>
  
  <p>Error Code: ERROR_DESTINATION_NOT_REACHABLE<br>
  More Information: Could not connect to the remote computer (""). On the remote computer, make sure that Web Deploy is installed and that `the required process ("Web Management Service") is started.<br>
  Learn more at: <a href="http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE" rel="nofollow noreferrer">http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE</a>.<br>
  Error: The remote server returned an error: (404) Not Found.<br>
  Error count: 1.<br>
  Installed Web Deploy Components <br>
  Ensured the Services are enabled ( Web Deploy / Remote Services ) <br>
  Remote Server : Windows 2012 <br>
  Local System : Windows 10</p>