无法使用Web部署工具部署Web应用程序
问题描述:
我在Azure上部署了应用程序。现在,我将MvcWebRole项目设置为通过Web部署直接发布到我的角色实例。 (闯民宅链接:http://www.wadewegner.com/2010/12/using-web-deploy-with-windows-azure-for-rapid-development/)无法使用Web部署工具部署Web应用程序
但是,每当我试图发布一个应用程序,它给一个错误,如:
Error 1 Web deployment task failed.(Remote agent (URL http://mywebsvr/MSDEPLOYAGENTSERVICE) could not be contacted.
Make sure the remote agent service is installed and started on the target computer.)
The requested resource does not exist, or the requested URL is incorrect.
Error details:
Remote agent (URL http://mywebsvr/MSDEPLOYAGENTSERVICE) could not be contacted. Make sure the remote agent service is installed and started on the target computer.
An unsupported response was received. The response header 'MSDeploy.Response' was '' but 'v1' was expected.
The remote server returned an error: (404) Not Found. 0 0 CPE Tracking System
我读过一些文章,其中大部分建议,以确保远程代理服务已经通过发出命令“net start msdepsvc”启动。但我不知道为什么发出这个命令会返回错误“服务名称无效”。
怎么服务器不能理解参数msdepsvc? 有人请帮忙!
感谢, TAdhav
答
感谢您的答复。问题现在已解决。试图部署应用程序的用户在机器上没有权限。
参考链接:http://forums.iis.net/p/1176267/1974277.aspx
链接用于在服务器上设置权限是:http://learn.iis.net/page.aspx/155/an-overview-of-feature-delegation-in-iis-70/
感谢,
TA
答
我会尝试使用新的SDK 1.4刷新。这包括现在正式支持的WebDeploy工具,并且更有可能在没有打嗝的情况下工作。
更多信息,并链接到这里下载:
嘿感谢DUnnry。 :) – TAdhav 2011-04-19 04:59:43