How can I publish an ASP.NET app from Visual Studio 2022 using Publish profile ?

Sorin Sandu 0 Reputation points Microsoft Employee


I am trying to publish an ASP.NET web app from VS 2022 using Publish profile downloaded from an App Service but I get the error:

Severity Code Description Project File Line Suppression State

Error Web deployment task failed. (Connected to the remote computer ("") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: ASPNETWebApplication1 0

Any ideas ?

I've tried this with no luck.

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

1 answer

Sort by: Most helpful
  1. Ryan Hill 26,951 Reputation points Microsoft Employee

    Hi @Sorin Sandu

    Basic Auth is disabled by default which blocks publish profiles. This effort goes towards securing app services. You can still elect to use a publish profile under General Settings in the Configuration blade.

    App Service Platform Settings

    1 person found this answer helpful.
    0 comments No comments