Web 部署导致 ERROR_COULD_NOT_CONNECT_TO_REMOTESVC [英] Web Deploy results in ERROR_COULD_NOT_CONNECT_TO_REMOTESVC

查看:23
本文介绍了Web 部署导致 ERROR_COULD_NOT_CONNECT_TO_REMOTESVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试配置与 TFS 2012 的持续集成.在排队新构建时,发布失败并显示错误:

<块引用>

构建失败."C:\src\ProjectName.sln" (默认目标) (1) ->"C:\src\Website\ProjectName.csproj" (默认目标) (2) ->(MSDeployPublish 目标)->C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4377,5):msdeploy 错误 ERROR_COULD_NOT_CONNECT_TO_REMOTESVC:Web 部署任务失败.(无法使用指定的进程(Web 管理服务")连接到远程计算机(服务器名称"),因为服务器没有响应.请确保该进程(Web 管理服务")在远程计算机上启动.了解更多信息:

  • 然后通过通常的添加/删除程序"控制面板卸载 Web Deploy(修复不起作用)
  • 使用 Web Platform Installer 再次安装 Web Deploy 3.x.
  • 已修复./叹气

    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.

    • Windows Server 2008 R2 with IIS 7.
    • Web Deployment Agent Service is running on port 8172.
    • Web Deploy 3.0
    • Windows Firewall is not blocking any port on the server.

    How can this be fixed?

    解决方案

    If you install Web Deploy 3.x BEFORE Web Management Tools are installed, you'll have to re-install Web Deploy. I beat my head against the wall for hours on this.

    1. Install the Web Management Services ("Turn Windows Features On/Off"/Roles -> Web Server -> Management Tools -> Management Service)
    2. Then uninstall Web Deploy (repair didn't work) via the usual Add/Remove Programs control panel
    3. Install Web Deploy 3.x again using Web Platform Installer.

    Fixed. /Sigh

    这篇关于Web 部署导致 ERROR_COULD_NOT_CONNECT_TO_REMOTESVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆