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

JK.*_*JK. 61 c# web-deployment-project visual-studio-2010 web-platform-installer

我正在使用IIS 7.5在Windows 2008(x64)上设置新服务器.我从Web Platform Installer安装了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 
Run Code Online (Sandbox Code Playgroud)

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

在此输入图像描述

安装Web部署代理服务(这是IIS6服务),但不安装Web管理服务(IIS7部署服务).

我怎样才能解决这个问题?Web Platform Installer是否不适用于Web Deploy?

Chr*_*uer 101

以下是截至2014年4月的当前演练:

  1. 在服务器上安装Web Platform Installer,可从Microsoft下载.

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

  2. 打开Web Platform Installer,选择顶部的"Products",然后搜索"Management Service".单击"IIS:Management Service"结果中的"添加"按钮,然后单击"安装".

    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

  • 杰出的一步一步的演练. (10认同)
  • 完全同意; 出色的答案. (3认同)

Jor*_*tos 23

打开Web平台安装程序(WPI)并在"产品"下添加IIS:Management Service.

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


Iva*_*van 12

在PowerShell中:

Import-Module Servermanager
Import-Module WebAdministration
Add-WindowsFeature Web-Mgmt-Service
Run Code Online (Sandbox Code Playgroud)


kat*_*roh 10

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

  • @DeveloperDan链接死了.最新的Web Archive版本:http://web.archive.org/web/20121005054118/http://tedgustaf.com/en/blog/2011/8/publish-aspnet-website-through-visual-studio-to-远程服务器使用的Web部署/ (2认同)