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

发布于 2024-11-07 14:30:21 字数 1082 浏览 4 评论 0原文

我们正在努力实现自动化部署,我对使用 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

我缺少什么?请帮忙?

We are working towards automated deployments and I was really exited about using MSdeploy to help get us there. Unfortunately, I have been having no luck with getting MS deploy to work with VS2010 and I am about to give up.

Our Win 2008 server is in the datacenter and I have the firewall and MS deploy remote service and IIS Management service setup correctly as per:
http://learn.iis.net/page.aspx/516/configure-the-web-deployment-handler/

I have setup the IIS Manager user and checked everything, I can think off. I can even connect from our dev environment if I use IIS remote management. However when I publish from VS 2010, I get:

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

What am I missing? Please help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

メ斷腸人バ 2024-11-14 14:30:21

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

http://xxxx:80/MsDeployAgentService

The: /MsDeployAgentService 是默认路径msdeploy 使用。

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

That error pops up when you aren't using the correct URL for the msdeploy service. It should look something like this:

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

The: /MsDeployAgentService is the default path that msdeploy uses.

Other things to try:
1. Turning off the firewall and see if it works.
2. validate the "web deployment service" is running in the windows service manager of the destination server.

倾城°AllureLove 2024-11-14 14:30:21

@PaulLemke 对于已经使用了一段时间的服务器来说,答案可能是正确的。

但作为浏览此问题的任何人的附录 - 如果服务器上未安装 MSDeploy,也会引发相同的错误 - 如果服务器是新的,则可能会发生这种情况。哦,还有 Troy Hunt 的部署系列文章非常值得一看在

@PaulLemke answer will probably be correct for a server that's been in use for some time.

But as an addendum for anyone browsing to this question - the same error is thrown if MSDeploy is simply not installed on the server - which may happen if the server is new. Oh and Troy Hunt's series of articles on deployment is well worth looking at.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文