我在 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?
有人请帮忙吗!
谢谢,
塔达夫
I deployed an application on Azure. Now, I setup my MvcWebRole project to publish directly to my role instance through web deploy. (refering link : http://www.wadewegner.com/2010/12/using-web-deploy-with-windows-azure-for-rapid-development/ )
However, whenever I am trying to publish an application, it is giving an error like:
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
I read some articles and most of them advise to make sure the remote agent service is already started by issuing the command "net start msdepsvc". But I don't know why issuing this command will return the error "The service name is invalid".
How come the server can't understand the parameter msdepsvc?
Would anybody please help!
Thanks,
TAdhav
发布评论
评论(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
I would try to use the new SDK 1.4 Refresh. That includes an officially supported WebDeploy tooling now and is much more likely to work without hiccups.
More information and link to download here:
http://blogs.msdn.com/b/windowsazure/archive/2011/04/15/now-available-windows-azure-sdk-1-4-refresh-with-webdeploy-integration.aspx
感谢您的回复。问题现已解决。尝试部署应用程序的用户没有计算机上的权限。
参考链接:http://forums.iis.net/p/1176267/1974277.aspx< /a>
用于在服务器上设置权限的链接是:http://learn.iis.net/page.aspx/155/an-overview-of-feature-delegation-in-iis-70/
谢谢,
TA
Thanks for your reply. Problem is resolved now. The user trying to deploy an application didn't have permission on machine.
Reference link: http://forums.iis.net/p/1176267/1974277.aspx
Link Used for setting up permission on server is: http://learn.iis.net/page.aspx/155/an-overview-of-feature-delegation-in-iis-70/
Thanks,
TA