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,635 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,944 questions
{count} votes

7 answers

Sort by: Most helpful
  1. Nisefal Demielf 11 Reputation points
    2021-04-01T18:49:26.37+00:00

    I've solved this problem with re-login into my Microsoft account in Visual Studio.

    2 people found this answer helpful.

  2. Sebastian Herrera 6 Reputation points
    2020-09-23T13:14:51.62+00:00

    Hey, did you find a solution for the issue, i am having the same issue?
    27211-image.png

    1 person found this answer helpful.

  3. Evgeny Grishchenko 486 Reputation points
    2020-09-19T11:34:10.53+00:00

    Looks more like a local permissions problem...

    Could you please check if you have proper permissions for your ..\source\repos folder and insights?


  4. Ryan Hill 26,136 Reputation points Microsoft Employee
    2020-12-03T22:58:37.667+00:00

    When you encounter generic error messages like that, it's best to report the problem and reproduce the error. This will capture the logs and call stacks that will help the Visual Studio team determine the root cause of the issue.

    Regards,
    Ryan

    /cc @Lex Jansen @Sebastian Herrera

    0 comments No comments

  5. Harshith Kumar Marru 1 Reputation point
    2020-12-14T04:59:52.133+00:00

    I had the same issue. For me its the local folder permissions that was creating the problem. My admin account on windows is different from the Microsoft account i have in Visual studio. Once i gave full control on the local folder to the Microsoft account i was using in Visual studio, i was able to create the publish profile.

    If the Microsoft account in the Visual studio is not equal to your Windows admin account, you get this problem. Give admin or full control to the MS account you are using for the respective folder path.

    0 comments No comments