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

标签 c# visual-studio-2010 web-deployment-project web-platform-installer

我正在使用 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 

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

enter image description here

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

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

最佳答案

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

  1. 在服务器上安装 Web 平台安装程序,即 available as a download from Microsoft .

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

  2. 打开 Web 平台安装程序,选择顶部的“产品”,然后搜索“管理服务”。单击“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。选择服务器节点后,在功能 View 中找到“管理服务”。

    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

关于c# - Visual Studio 2010 中的 Web 部署 - 缺少 Web 管理服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6406590/

相关文章:

c# - BCrypt 根据数据库中的密码验证密码

c++ - Visual Studio 和 Visual C++ 一样吗

c++ - 如何使用threadfence/CUDA5.5

c# - MVC 通用存储库/工作单元模式 - 扩展存储库

c# - Crystal 报表没有出现在 asp.net 上

c# - 在 .NET 中更改代码中的 UserAgent

visual-studio-2010 - 无法使用 Transform 删除 Web.Config 节点

javascript - 用户如何从 html 表单中收集 Google 应用程序脚本中变量输入值的值?

asp.net - 将 NuGet 与 ASP.NET "Web Site"项目中的 *.dll.refresh 文件与 Web 部署项目一起使用

msbuild - 如何从发布中排除某些 appsettings 文件