无法使用Web部署工具部署Web应用程序

时间:2011-04-15 05:33:02

标签: azure azure-web-roles

我在Azure上部署了一个应用程序。现在,我设置我的MvcWebRole项目,通过Web部署直接发布到我的角色实例。 (参见链接:http://www.wadewegner.com/2010/12/using-web-deploy-with-windows-azure-for-rapid-development/

但是,每当我尝试发布应用程序时,都会出现如下错误:

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

2 个答案:

答案 0 :(得分:2)

我会尝试使用新的SDK 1.4 Refresh。这包括现在正式支持的WebDeploy工具,更有可能在没有打嗝的情况下工作。

更多信息和链接下载:

http://blogs.msdn.com/b/windowsazure/archive/2011/04/15/now-available-windows-azure-sdk-1-4-refresh-with-webdeploy-integration.aspx

答案 1 :(得分:1)

感谢您的回复。问题现在解决了。尝试部署应用程序的用户没有机器权限。

参考链接:http://forums.iis.net/p/1176267/1974277.aspx

用于设置服务器权限的链接是:http://learn.iis.net/page.aspx/155/an-overview-of-feature-delegation-in-iis-70/

谢谢,

TA