Visual Studio - Unable to create publish profile

Lex Jansen 26 Reputation points
2020-09-18T16:47:32.593+00:00

Hi,

I'm following the Quickstart guide for creating an ASP.NET-based Web App. When I try publishing my app to an existing Azure Web App (kpirep-dev in my case), I'm receiving the following error:

"Unable to create publish profile C:\Users\<User>\source\repos\kpirep-dev\kpirep-dev\Properties\PublishProfiles\AppService.pubxml"

I'm not very familiar with Visual Studio or WebApps - may this be an Azure permission issue for the Resource group and/or WebApp? I'm set as an User Access Administrator for both.

25849-image.png

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,674 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,994 questions
{count} votes

7 answers

Sort by: Most helpful
  1. Development@kedhlow 1 Reputation point
    2022-02-24T12:32:37.537+00:00

    Thx, indeed, relogin in Visual Studio worked!

    0 comments No comments

  2. Vo, Thuong 1 Reputation point
    2022-09-08T21:21:25.553+00:00

    I tried all the above but nothing worked. The problem is I am deploying to Azure US Govt Cloud while visual studio somehow connects to the public cloud instead. I don't know if there's another way to reset this but I did the following:
    In VS, under Tool>Options>Environment>Accounts>Registered Azure Clouds, click Add and choose the correct endpoint cloud site. (I can't remove the other one out for some reasons)
    Remove all account(s) and re-add. During this adding process, pick the right Azure Cloud Endpoint for that account.

    0 comments No comments