azureazure-web-app-serviceweb-deploymentmicrosoft-web-deploy

Web Deploy package throws ERROR_SITE_DOES_NOT_EXIST when deployed


After creating a WDP from an aspnet solution, the [project name].deploy.cmd file returns this error when executed:

Error Code: ERROR_SITE_DOES_NOT_EXIST More Information: Site 'freedomstoreusa.azurewebsites.net' does not exist. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_SITE_DOES_NOT_EXIST. Error count: 1.

My objective is to deploy the package to this site as if it were publishing to azure from visual studio 2017. What is causing this issue, what can resolve it and what are some alternatives to packaging and deploying a website?

Here are my settings in the package wizard: enter image description here


Solution

  • what can resolve it and what are some alternatives to packaging and deploying a website?

    I build and package the web application project, and use MSDeploy.exe to deploy the web application, which works fine on my side.

    Command:

    enter image description here

    TestSite.SetParameters.xml

    <?xml version="1.0" encoding="utf-8"?>
    <parameters>
      <setParameter name="IIS Web Application Name" value="{app name}" />
    </parameters>