We are trying to configure continuous integration with TFS 2012. While queuing a new build, the publish fails with the error:
Build FAILED. "C:\src\ProjectName.sln" (default target) (1) -> "C:\src\Website\ProjectName.csproj" (default target) (2) -> (MSDeployPublish target) -> C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4377,5): msdeploy error ERROR_COULD_NOT_CONNECT_TO_REMOTESVC: Web deployment task failed. (Could not connect to the remote computer ("ServerName") 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)**
I checked all the points mentioned in the IIS.NET documentation for this error. Both services mentioned, Web Management Service and Web Deployment Agent Service, are running fine. A restart of those services has no change in behavior.
How can this be fixed?
If you install Web Deploy 3.5 BEFORE Web Management Tools are installed, you'll have to re-install it. I beat my head against the wall for hours on this. Install the Web Management Services (Roles -> Web Server > Management Tools > Management Services). Then uninstall Web Deploy (repair didn't work), and then install it again. Fixed. /Sigh