Web deployment task failed. Could not connect...server did not respond

Solution 1:

I had the same problem with Web Deploy 3.5 when I installed it with "Web Platform Installer 5.0"

When I tried to publish from Visual Studio I got this error:

---------------------------
Microsoft Visual Studio
---------------------------
Could not connect to the remote computer ("10.0.3.102") using the specified process 
("Web Management Service") because the server did not respond. Make sure that the process 
("Web Management Service") is started on the remote computer.  Learn more at: 
http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_COULD_NOT_CONNECT_TO_REMOTESVC. 
The remote server returned an error: (403) Forbidden.
---------------------------
OK   
---------------------------

I double checked the services, both was running. I switched off the firewall also and still the same error.

How I solved this problem:

  1. open "Add or remove" programs
  2. Click on "Microsoft Web Deploy"
  3. Click on "Change" button (besides "Uninstall")
  4. Click on "Next" in

enter image description here

  1. Click on "Change" in

enter image description here

  1. Add the features marked with red X

enter image description here

  1. Finish the installation

    Result: Publish from Visual Studio is working

Solution 2:

I encountered this yesterday. In my scenario it entirely boiled down to in the publish settings where it asks for Site Name: I provided MyApplication. When it really was expecting me to provide:

Default Web Site/MyApplication

I brought this up with the Microsoft Deployment team so hopefully they can add clarity that if you don't specify an existing site name that it's not the web deploy server being dead the way this error makes you think.

Solution 3:

I have had the same problem and solved it by deleting all the web deploy folders in program files(x86)\IIS and in Program Files\IIS.

After that I reinstalled web deploy 1.1 and web deploy 3.0 without bundled SQL.