Visual Studio Web部署到IIS 6

编程入门 行业动态 更新时间:2024-10-27 14:23:09
本文介绍了Visual Studio Web部署到IIS 6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否有人成功使用VS2010的新Web部署功能将网站部署到在Windows Server 2003上运行的IIS 6?

Has anyone successfully used the new Web Deploy feature of VS2010 to deploy a web site to IIS 6 running on Windows Server 2003?

当我尝试时,我得到以下内容错误:

When I try I get the following error:

Web部署任务失败。无法完成对远程代理 URL'https:// myserver:8172 / msdeploy.axd?site = mysite'的请求。 无法连接到远程服务器。没有连接可以,因为目标机器主动拒绝它。

Web deployment task failed. Could not complete the request to remote agent URL 'myserver:8172/msdeploy.axd?site=mysite'. Unable to connect to the remote server. No connection could be made because the target machine actively refused it.

我可以在本地部署(从VS安装在服务器上的IIS服务器上)和万维网发布服务正在运行。但是,没有进程侦听端口8172.是否应该有一个?

I can deploy locally (from VS installed on the server to IIS on the server) and the World Wide Web Publishing Service is running. However, there is no process listening on port 8172. Is there supposed to be one?

推荐答案

您的问题已经部分回答但让我一下子尝试总结一下。你在Windows Server 2003上,这意味着IIS6。虽然IIS6可以通过Web Deploy发布,但您必须使用Web部署代理,这意味着您要发布的终点应该如下所示:

Your question has been partially answered already but let me try and summarise it in one go. You're on Windows Server 2003 which means IIS6. Whilst IIS6 can be published to via Web Deploy, you must use the Web Deployment Agent which means the end point you're publishing to should look something like this:

myserver/MsDeployAgentService

请注意 不是 HTTPS地址,并未明确指定端口。此外,发布到此端点 的帐户必须具有服务器上的管理员权限 (讨厌,但必要)。最后,确保Web部署代理服务实际上正在运行,因为它没有设置为默认自动启动。

Note this is not an HTTPS address and does not explicitly specify a port. Also, the account publishing to this endpoint must have admin rights on the server (nasty, but necessary). Finally, make sure the "Web Deployment Agent Service" is actually running because it's not set to start automatically by default.

您的示例适用于运行IIS7的Windows Server 2008,其中可以使用IIS部署处理程序(顺便说一句,Web部署处理程序也可以用于IIS7)。

Your example is for Windows Server 2008 running IIS7 where the IIS Deployment Handler can be used (incidentally, the Web Deployment Handler can also be used against IIS7).

看看我的这篇文章:你正在部署错误! TeamCity,Subversion& Web部署第3部分:使用Web Deploy发布。

更多推荐

Visual Studio Web部署到IIS 6

本文发布于:2023-11-15 14:31:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1595278.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Studio   Visual   IIS   Web

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!