我在 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?有人请帮忙!
谢谢, 塔达夫