MSDeploy 一键发布在 VS2010 中不起作用

标签 msdeploy msdeployserviceagent

我们正在努力实现自动化部署,我对使用 MSdeploy 来帮助我们实现这一目标感到非常兴奋。不幸的是,我一直没有成功让 MS 部署与 VS2010 一起工作,我即将放弃。

我们的 Win 2008 服务器位于数据中心,我有防火墙和 MS 正确部署远程服务和 IIS 管理服务设置,如下所示: http://learn.iis.net/page.aspx/516/configure-the-web-deployment-handler/

我已经设置了 IIS 管理器用户并检查了所有内容,我可以思考了。如果我使用 IIS 远程管理,我什至可以从我们的开发环境进行连接。然而,当我从 VS 2010 发布时,我得到:

Error   1   Web deployment task failed.(Could not connect to the destination computer ("x.x.x.x"). On the destination computer, make sure that Web Deploy is installed and that the required process ("The Web Management Service") is started.)
The requested resource does not exist, or the requested URL is incorrect.
Error details:
Could not connect to the destination computer ("x.x.x.x"). On the destination computer, make sure that Web Deploy is installed and that the required process ("The Web Management Service") is started.
The remote server returned an error: (404) Not Found.       0   0   UI

我错过了什么?请帮忙?

最佳答案

当您未使用正确的 msdeploy 服务 URL 时,会弹出该错误。它应该看起来像这样:

http://x.x.x.x:80/MsDeployAgentService

/MsDeployAgentService 是 msdeploy 使用的默认路径。

其他可以尝试的事情: 1.关闭防火墙,看看是否有效。 2. 验证“Web 部署服务”正在目标服务器的Windows 服务管理器中运行。

关于MSDeploy 一键发布在 VS2010 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6031994/

相关文章:

msdeploy - MS Web Deploy + Web Deploy 远程服务,它是如何保护的

iis - 尝试同步站点时,MSDeploy触发“401访问被拒绝”错误

c# - 尝试部署网站时 MSDeploy Error_Connection_Terminated

.net - msdeploy 忽略 .hgignore

msdeploy - 跳过 msdeploy 中的规则

MsBuild 和 MsDeploy 问题

MSBUILD 无法强制包目标的 PackageLocation

.net - 我可以使用Web Deploy将元素插入web.config吗?

visual-studio - WebDeploy - 只是无法让它工作

msbuild - 如何使用带有集成 Windows 身份验证的 MSDeploy 和 TeamCity 进行部署?