Visual Studio 2010 中的 Web 部署 - 缺少 Web 管理服务

发布于 2024-11-15 23:42:43 字数 894 浏览 5 评论 0原文

我正在使用 IIS 7.5 在 Windows 2008 (x64) 上设置新服务器。我已从 Web 平台安装程序安装了 Web Deploy 2.1。

但服务器缺少 Web 管理服务,因此任何 Web 部署都会失败并显示以下消息:

Error   1   Web deployment task failed.(Could not complete the request to remote agent URL 'https://url:8172/MsDeploy.axd?site=Default Web Site'.)
This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server.
Error details:
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 

我检查了服务并发现缺少必要的服务:

在此处输入图像描述

安装了 Web 部署代理服务(这是 IIS6 服务),但未安装 Web 管理服务(IIS7 部署服务)。

我该如何解决这个问题? Web 平台安装程序不适用于 Web 部署吗?

I'm setting up a new server on Windows 2008 (x64) with IIS 7.5. I have installed Web Deploy 2.1 from the Web Platform Installer.

But the server is missing the Web Management Service, and as a result any web deploy fails with this message:

Error   1   Web deployment task failed.(Could not complete the request to remote agent URL 'https://url:8172/MsDeploy.axd?site=Default Web Site'.)
This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server.
Error details:
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 

I checked the services and found the necessary service is missing:

enter image description here

The Web Deployment agent service is installed (this is the IIS6 service), but not the Web Management service (the IIS7 deploy service).

How can I fix this? Does the Web Platform Installer not work for Web Deploy?

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

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

发布评论

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

评论(6

花开浅夏 2024-11-22 23:42:43

以下是截至 2014 年 4 月的最新演练:

  1. 在服务器上安装 Web 平台安装程序,即 可从 Microsoft 下载

    http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-26-18.png

  2. 打开Web Platform Installer,选择顶部的“产品”,然后搜索“管理服务”。单击“IIS:管理服务”结果中的“添加”按钮,然后单击“安装”。

    http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-34-25.png

  3. 安装 Web 管理服务后,可在服务控制台中找到它。将其启动类型设置为自动并启动它。

    http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-38-19.png

  4. 打开 IIS。选择服务器节点后,在功能视图中找到“管理服务”。

    http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-44-28.png

  5. 双击“管理服务”即可打开该功能。如果需要进行编辑,请将其停止在右侧面板中。选中“启用远程连接”。当您完成更改后。单击“应用”,然后单击“开始”。

    http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-48-02.png

Here is a current walkthrough as of April 2014:

  1. Install the Web Platform Installer on the server, which is available as a download from Microsoft.

    http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-26-18.png

  2. Open Web Platform Installer, select "Products" at the top, and search for "Management Service". Click the "Add" button from the "IIS: Management Service" result , then click "Install".

    http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-34-25.png

  3. Once the Web Management Service has installed, find it in the Services console. Set its startup type to Automatic and start it.

    http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-38-19.png

  4. Open IIS. With the server node selected, find "Management Service" in the Features View.

    http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-44-28.png

  5. Double click "Management Service" to open the feature. Stop it in the right panel if necessary to make edits. Check "Enable remote connections". When you are done making changes. Click "Apply", then click "Start".

    http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-48-02.png

注定孤独终老 2024-11-22 23:42:43

打开 Web Platform Installer(WPI) 并在“产品”下添加 IIS:管理服务。

如果您不知道在哪里可以找到 WPI,请转到 IIS 管理器 ->服务器节点->服务器中的管理部分。如果那里没有,请从 http://www.microsoft.com/web/gallery/ 安装它install.aspx?appid=WDeploy

Open Web Platform Installer(WPI) and add IIS: Management Service, under Products.

If you don't know where to find WPI go to IIS Manager -> Server Node -> Management Section in the Server. If it's not on there install it from http://www.microsoft.com/web/gallery/install.aspx?appid=WDeploy

瑾夏年华 2024-11-22 23:42:43

在 PowerShell 中:

Import-Module Servermanager
Import-Module WebAdministration
Add-WindowsFeature Web-Mgmt-Service

In PowerShell:

Import-Module Servermanager
Import-Module WebAdministration
Add-WindowsFeature Web-Mgmt-Service
七颜 2024-11-22 23:42:43

启动 InetMgr.exe,并在树视图中的服务器节点上选择“管理服务”。默认情况下它是禁用的,因此您需要选中“启用远程连接”。

Launch InetMgr.exe and while being on the server node in the tree view, select "Management Service". By default it is disabled, so you need to check "Enable remote connections".

我最亲爱的 2024-11-22 23:42:43

如果您进入“添加/删除程序”,找到“Web 部署”,然后点击“更改”,您应该能够添加任何缺少的功能。可能您选择的 WebPI 包没有默认安装(IIRC,有多个 WebDeploy 安装包)。

If you go into Add/Remove Programs, find Web Deploy, and hit Change, you should be able to add any missing features. Possibly the WebPI package you selected didn't install it by default (IIRC, there are multiple WebDeploy install packages).

昇り龍 2024-11-22 23:42:43

需要记住的是,在执行所有这些步骤(IIS7)后,我无法启用远程连接,因为它是灰色的。所以我停止了管理服务,刷新了控制台(仍然保持灰色),然后单击底部的“内容视图”选项卡并返回到“功能视图”选项卡,最后它允许我启用远程连接。在我看来,安装产品后出现了一个错误,但这可能是因为我没有升级到最新的 Web 平台安装程序。

Something to keep in mind, after following all these steps (IIS7) I couldn't enable remote connections because it was greyed out. So I stopped the Management Service, refreshed the console(still remained greyed), then clicked on the bottom Contents View tab and came back to the Features View tab, and finally it allowed me to enable remote connections. Looked like a bug to me after installing the product, but it maybe because I didn't upgrade to the latest Web Platform Installer.

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