我正在使用 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 部署?
最佳答案
这是截至 2014 年 4 月的当前演练:
在服务器上安装 Web 平台安装程序,即 available as a download from Microsoft .
http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-26-18.png
打开 Web 平台安装程序,选择顶部的“产品”,然后搜索“管理服务”。单击“IIS:管理服务”结果中的“添加”按钮,然后单击“安装”。
http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-34-25.png
安装 Web 管理服务后,在服务控制台中找到它。将其启动类型设置为自动并启动它。
http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-38-19.png
打开 IIS。选择服务器节点后,在功能 View 中找到“管理服务”。
http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-44-28.png
双击“管理服务”打开该功能。如有必要,请在右侧面板中将其停止以进行编辑。选中“启用远程连接”。完成更改后。单击“应用”,然后单击“开始”。
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/