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

发布于 2024-11-01 03:02:20 字数 1148 浏览 2 评论 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? 有人请帮忙吗!

谢谢, 塔达夫

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

智商已欠费 2024-11-08 03:02:20

我会尝试使用新的 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

允世 2024-11-08 03:02:20

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

参考链接: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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文