Search code examples
web-deploymentmsdeployazure-deploymentmicrosoft-web-deploy

MSDeploy "The underlying connection was closed: The connection closed unexpectedly"


I am attempting to publish my web deploy package to azure using msdeploy.exe. It seems that the input parameters required such as /M, /U, /P have been filled in correctly but something is going wrong and the error is not descriptive enough. Has anyone seen this problem before or know where to look?

Thanks in advance.

enter image description here


Solution

  • I found the solution. the url placed on the /m parameter must have https:// prepended and /msdeploy.axd appended. Here is a screenshot of the readme that was generated with the web deploy package. This documentation led me to realise my error.

    readme capture