title: Web Deploy (aka MsDeploy) returns ERROR_CONNECTION_TERMINATED
body: <p>I am trying to execute from command line msdeploy like for example following command:</p>
  
  <pre><code>"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync 
          -source:package="Templates\TemplateAppPool.zip" 
          -dest:appPoolConfig="MyAppPool",computerName="...",userName="...",password="..." 
          -replace:objectName=processModel,targetAttributeName=idleTimeout,replace=00:45:00 
          -replace:objectName=add,targetAttributeName=managedPipelineMode,replace=Integrated 
          -allowUntrusted
  </code></pre>
  
  <p>And getting following error</p>
  
  <pre><code>Info: Using ID '0b2ec654-ae21-4848-897d-f644d95b4bfa' for connections 
  to the remote server.
  Error Code: ERROR_CONNECTION_TERMINATED
  More Information: Web Deploy experienced a connection problem with 
  the server and had to terminate the connection.  Contact your server 
  administrator if the problem persists.  Learn more at: 
  http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_CONNECTION_TERMINATED
  </code></pre>
  
  <p>I've added -allowUntrusted to prevent possible errors with certificates on target machine. Because when I try to do it from VS 2013 it shows me error/warning about certificate on target machine. Anyway I am accepting wrong certificate and it goes further saying that it's all right with connection, but</p>
  
  <p>when I try to publish from VS 2013 I am getting following </p>
  
  <pre><code>Start Web Deploy Publish the Application/package to 
  https://remotehost:8172/msdeploy.axd?site=Default%20Web%20Site ...
  C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4193,5): 
  Error : Web deployment task failed. (Unknown ProviderOption:DefiningProjectFullPath. 
  Known ProviderOptions are:skipInvalid.)
  Publish failed to deploy.
  </code></pre>
  
  <p>Command itself is fine, because when I change target machine in command to local, it works.</p>