Web deployment task failed from visual studio using profile

Pooja Bhadja 0 Reputation points
2024-12-07T06:03:52.5733333+00:00

i am getting this error while deploying blazor server app

Severity Code Description Project File Line Suppression State

Error Web deployment task failed. (Could not complete the request to remote agent URL 'https://test.scm.azurewebsites.net/msdeploy.axd?site=test'.)

This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server.

Error details:

Could not complete the request to remote agent URL 'https://test.scm.azurewebsites.net/msdeploy.axd?site=test'.

The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.

Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond test 0

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,665 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,327 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Achraf Ben Alaya 1,226 Reputation points MVP
    2025-02-16T13:41:31.31+00:00

    Hi ,

    1-Check app service health (make sure the servcice is runing)
    2-verify if you have firewall issue on your machine .
    3-Check deployment credentiel
    4-Restart app service and rebuild the project and retry to deploy
    5-Check the .Net version version that you are using

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    0 comments No comments

  2. Bruce (SqlWork.com) 71,586 Reputation points
    2025-02-16T17:00:50.4866667+00:00

    You appear to be using the IIS webdeploy method for an azure site. Azure does not support webdeploy. You should be using an azure publish.

    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.