Share via

I get an error when trying to publish my Asp.NET app zu azure app service

Pascal Wüthrich 20 Reputation points
2024-10-24T11:02:09.6333333+00:00

I used a downloaded publish profile from my Azure Web App to publish an Asp.NET app. The import worked but the publish itselfs results in an error: "Could not connetct to the remote computer. On the remote computer make sure that

  1. Web Deploy is installed and
  2. that the required process Web Management Service is started

How can I validate if the 2 issues are correctly configured on my azure portal?

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.


2 answers

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,721 Reputation points Moderator
    2024-10-29T03:53:39.3366667+00:00

    @Pascal Wüthrich Thanks for reply! could you check contributor role-

    The "Contributor" role won't give you access to the data in App Configuration. You need to grant yourself the App Configuration Data Owner role. More details can be found in the document below:

    https://learn.microsoft.com/en-us/azure/azure-app-configuration/concept-enable-rbac#azure-built-in-roles-for-azure-app-configuration

    Was this answer helpful?

    0 comments No comments

  2. SnehaAgrawal-MSFT 22,721 Reputation points Moderator
    2024-10-25T11:51:40.9633333+00:00

    @Pascal Wüthrich Thanks for reaching here! If I understood you are facing issue-

    Could not connetct to the remote computer. On the remote computer make sure that

    1. Web Deploy is installed and
    2. that the required process Web Management Service is started

    You may follow below steps-

    1. Go to the app service on the Azure portal.
    2. Go to configuration.
    3. Add an app setting with name WEBSITE_WEBDEPLOY_USE_SCM and value false.
    4. Save changes.
    5. Download a new publish profile.

    You should be able to do publish from Visual Studio now.

    You may also try Resetting your "publish profile". You can reset it from the Azure Portal at your web app. 

    enter image description here

    Let us know.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.