Visual Studio - Unable to create publish profile

Lex Jansen 36 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

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,936 questions
Developer technologies | Visual Studio | Other
{count} votes

4 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. 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?


  3. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    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

  4. 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

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.