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

Sorin Sandu 0 Reputation points Microsoft Employee
2023-11-27T12:54:54.3633333+00:00

Hi,

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 ("sorinwebapp6.scm.azurewebsites.net") 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: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.) ASPNETWebApplication1 0

Any ideas ?

I've tried this https://learn.microsoft.com/en-us/training/modules/publish-azure-web-app-with-visual-studio/5-exercise-publish-an-asp.net-app-from-visual-studio 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
    2023-11-27T15:06:44.79+00:00

    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