0

我在 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?有人请帮忙!

谢谢, 塔达夫

4

2 回答 2

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

于 2011-04-15T23:31:30.180 回答
1

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

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

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

谢谢,

助教

于 2011-04-19T04:58:11.523 回答