VS2019 - Unable to create publish profile - Azure Virtual Machine (Windows Server 2019 Datacenter)

John Millard 16 Reputation points
2020-11-24T14:53:47.853+00:00

Hi there,

I'm unable to create a publish profile for deploying an ASP.NET 4.7 web application to an Azure Virtual Machine, when using VS2019 Community Edition (16.8.2).

The error shown is "Unable to create publish profile C:\<path>\Properties\PublishProfiles\AppService.pubxml":

42098-image.png

The Azure Virtual Machine has been configured with IIS, etc, and has Web Deploy 3.6 installed (as per tutorial-import-publish-settings-iis).

Port 8172 has been opened up (via the Azure Portal).

I can workaround the issue by manually creating a Publish Profile (.publishsettings file) in IIS directly and then importing that into VS2019. The .publishprofile allows me to successfully connect to the server, publish my site and run it, etc.

To me, the VS2019 highlighted above suggests the wrong type of publish profile file is being created.

My VS2019 info is below:

42232-image.png

Could yourselves look into it and resolve the bug please?

Many thanks,
John

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,933 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Kenneth Villines 31 Reputation points
    2020-11-24T16:07:38.91+00:00

    I am having the same issue so I am following this.

    6 people found this answer helpful.
    0 comments No comments

  2. JayPothuri 6 Reputation points
    2020-12-01T15:45:59.71+00:00

    Hmm. I have the same problem too.

    1 person found this answer helpful.
    0 comments No comments

  3. Balaji ch 6 Reputation points
    2020-12-22T23:09:38.72+00:00

    I am having same issue, how to resolve this.

    1 person found this answer helpful.
    0 comments No comments

  4. Balaji ch 6 Reputation points
    2020-12-22T23:18:51.343+00:00

    I got work around.
    Choose web deploy instead and manually give all details.
    50601-screenshot-2020-12-22-181830.png

    0 comments No comments

  5. Brian Droncheff 1 Reputation point
    2021-01-07T23:55:58.21+00:00

    While I'm still having the problem, I found a work around which at least allows me to deploy to a folder on the VM. This is done by creating a publish profile and then importing it, the instructions are here

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.