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

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

Leave a Comment