Could not connect to remote computer Web Deploy error_destination_not_reachable

Azure Publish Error; Web deployment task failed. (Could not connect to the remote computer [...])

04/12/18 on .NET, Azure, Tech


I recently encountered a connection problem while publishing an application service to Azure from behind my employer’s firewall. Here is the complete error message:

Error 1 Web deployment task failed. (Could not connect to the remote computer [...]). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.)

This is obviously a showstopper that hinders you from getting your site published to the public cloud from your employer’s company domain. Fear not though, as there is a solution to this; by disabling SCM. The solution is based on an answer from Patrick McCurley at StackOverflow:

  1. Go to the Azure Portal.
  2. Click on App Services.
  3. Click on your application service.
  4. Click on Application settings.
  5. Scroll down to Application settings.
  6. Click Add new setting, and add the following entry:

Name: WEBSITE_WEBDEPLOY_USE_SCM, Value: false

  1. Click on Save and close the Application settings window.
  2. Click on your application service.
  3. Download the publish profile by clicking on Get publish profile.
  4. Import the publish profile when publishing your application service to Azure from Visual Studio.

This effectively disables SCM and enables you to publish your application service to Azure.

  1. Home
  2. Azure
  3. Web Deployment Task Failed Destination Not Reachable

Could not connect to remote computer Web Deploy error_destination_not_reachable
Could not connect to remote computer Web Deploy error_destination_not_reachable
Could not connect to remote computer Web Deploy error_destination_not_reachable
Could not connect to remote computer Web Deploy error_destination_not_reachable
Could not connect to remote computer Web Deploy error_destination_not_reachable
Could not connect to remote computer Web Deploy error_destination_not_reachable
Could not connect to remote computer Web Deploy error_destination_not_reachable
Could not connect to remote computer Web Deploy error_destination_not_reachable

Ron answer at 2015-10-14 3


I had the exact same problem for a couple of days (sometimes I could published and sometimes not).
The problem was my internet configuration (not related to Microsoft or Azure in anyway).
To solve this issue I disconnected my modem (its actually modem+router) for 10 min and reconnect it and it was fixed!

Hope it will help someone someday...


* The answers/resolutions are collected from stackoverflow, are licensed under CC BY-SA 3.0

Web deployment task failed. Destination not reachable

1 week ago Mar 01, 2014  · Web deployment task failed.(Creating a new application is not supported by this server environment) Hot Network Questions Perfectly forwarding lambda capture in …

Reviews: 1

Show details

WebDeploy - ERROR_DESTINATION_NOT_REACHABLE

1 day ago Jan 22, 2014  · I can deploy to this server using MSBUILD.exe and VS2012 on my development machine. But cannot get it to work on from TFS. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets (4193): Web deployment task failed. (Could not connect to the remote computer ("xxx.xx.xx.xxx").

Show details

Web Deploy error codes | Microsoft Docs

1 week ago Mar 09, 2022  · ERROR_DESTINATION_NOT_REACHABLE. Diagnosis: Web Management Service or Remote Agent is not installed or unreachable on the remote computer. ... Diagnosis: Web Deploy failed to perform a sync using SQL Dedicated Administrator Connection (DAC) because SQL DAC requires .Net 4.0.

Show details

Troubleshooting Web Deploy problems with Visual Studio

1 day ago The first error you are likely to encounter will look something like the screenshot below in Visual Studio's output window. To make it easier to read, the full text of the message is reproduced below the screenshot. The text highlighted in this error (and the other errors below) is the key to understanding the nature of the problem. Web Deploy did ...

Show details

Web deployment task failed - social.msdn.microsoft.com

6 days ago Dec 27, 2020  · 1)Go to the Start menu and right-click the cmd.exe and then select Run as Administrator. Enter the following in the command prompt: winrm quickconfig winrm set winrm/config/client @ {TrustedHosts="*"} 2)On the target server, open a command prompt as an Administrator and enter the following: winrm quickconfig winrm set winrm/config/client ...

Show details

Azure Publish Error; Web deployment task failed. (Could not …

1 week ago Apr 12, 2018  · Fear not though, as there is a solution to this; by disabling SCM. The solution is based on an answer from Patrick McCurley at StackOverflow : Go to the Azure Portal .

Show details

(Solved) Could not reach the Web Deploy endpoint on the …

4 days ago Jul 29, 2019  · After solving the “Could not reach the Web Deploy endpoint” error, we run into another issue while trying to publish the web application: Web deployment task failed. (Connected to the remote computer (“testsite.azure.com”) using the specified process (“Web Management Service”), but could not verify the server’s certificate.

Show details

See also: Azure

Please leave your answer here:

How do you check Web Deploy is installed or not?

Is Web Deploy installed? You can verify web deploy is installed by going to the "Programs and Features" control panel and looking for "Microsoft Web Deploy 2.0" in the list of installed programs. If it is not there, you can install it via the Web Platform Installer by going to the "Products" tab.

Could not connect to the remote computer make sure that the remote computer name is correct?

If you cannot connect using the remote computer name, try using the IP address instead. You can use ipconfig in a command line on the remote computer to get the IPv4 address. If you are using a HOSTS file, verify that it is configured correctly.

How do I enable Web deploy in IIS 10?

To install Web Deploy separately using Web PI:.
Download the Web Platform Installer..
Open WebPI on your desktop..
Click in the search bar in the upper-right hand corner, enter "Web Deploy", and press Enter..
Select the Web Deploy that you want, and then click Add..
On the Prerequisites page, click I accept..

How do I know if Web management is running?

In the center pane, under Management, double-click Management Service. In the center pane, select Enable remote connections. If the Web Management Service is already running, you'll need to stop it first. In the Actions pane, click Start to start the Web Management Service.