Visual Studio 2010 Web 部署任务失败 [英] Visual Studio 2010 Web deployment task failed

查看:53
本文介绍了Visual Studio 2010 Web 部署任务失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 VS2010 的一键发布功能将测试站点从我的笔记本电脑部署到我的服务器.我在两台机器上都关闭了防火墙,并且 MS 部署服务已在我的笔记本电脑和服务器上启动并运行.

I am trying to use VS2010's 1-Click Publish feature to deploy a test site from my laptop to my server. I have the firewall turned off on both machines and the MS Deployment Service is up and running on both my laptop and the server.

但是,当我尝试在笔记本电脑上从 VS2010 发布时,出现以下错误:

However, when I try and publish from VS2010 on my laptop I get the following error:

错误 1 ​​Web 部署任务失败.(远程代理(URL https://192.168.1.181/:8172/msdeploy.axd?site=LocationsTest) 无法联系.请确保远程代理服务已安装并在目标计算机上启动.)
请求的资源不存在,或者请求的 URL 不正确.
错误详情:
远程代理(URL https://192.168.1.181/:8172/msdeploy.axd?site=LocationsTest) 无法联系.确保在目标计算机上安装并启动了远程代理服务.
收到了不受支持的响应.响应标头MSDeploy.Response"为",但应为v1".
远程服务器返回错误:(404) 未找到.0 0 测试.Web

Error 1 Web deployment task failed.(Remote agent (URL https://192.168.1.181/:8172/msdeploy.axd?site=LocationsTest) 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 https://192.168.1.181/:8172/msdeploy.axd?site=LocationsTest) 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 Test.Web

知道我在这里做错了什么吗?

Any idea what I am doing wrong here?

推荐答案

确保您将 WMSvc 服务(Web 管理服务)设置为自动"(并已启动),以便在您重新启动 & 时启用它.查看此链接

Make sure you have the WMSvc Service (Web Management Service) set to 'Auto' (and started) so it's on when you restart & check out this link

这篇关于Visual Studio 2010 Web 部署任务失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆