Visual Studio 2017 Enterprise, IIS 10, Windows Server 2016, Web Deploy 5 Error: "Make sure that Web Deploy is installed"

Visual Studio 2017 Enterprise, IIS 10, Windows Server 2016, Web Deploy 5 Error: "Make sure that Web Deploy is installed"

我安装了IIS,启动了Web Management Service,安装了Web Platform Installer,检查了端口,windows防火墙没有开启,关机再启动,还是报错web deploy is'当我尝试在 Visual Studio 中使用 Web deploY 发布时未安装。我可以检查哪些其他配置来完成 Web 部署?

Visual Studio 2017 企业版,IIS 10,Windows 服务器 2016,网络部署 5,ASP.net 4.6

无法连接到远程计算机 ("aspnet-dev")。在远程计算机上,确保安装了 Web Deploy 并启动了所需的进程 ("Web Management Service")。了解更多信息:http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE。远程服务器返回错误:(404) Not Found

Could not connect to the remote computer ("aspnet-dev"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE. The remote server returned an error: (404) Not Found

根据您的错误信息,您似乎使用了错误的服务器地址。 Web 部署可以找到远程服务器("aspnet-dev")。

你能告诉我哪个服务器名为 "aspnet-dev" 吗?在您当前的服务器或远程服务器上?

如果你只是想发布web应用到当前服务器(IIS服务器安装VS),建议你可以先打开当前IIS管理控制台,确保你使用了正确的服务器名称和IIS Web 应用程序名称。

如下所示:

那我建议你打开Web Platform Installer看看你是否安装了web deploy

如果你想发布web应用程序到远程服务器(IIS服务器没有安装VS),我建议你可以使用服务器的IP地址或域名,而不是像下面这样的服务器名称:

https://yourhostname:8172/

此外,我建议您可以参考下面的文章来生成 web 部署发布设置,并使用它来将 web 应用程序发布到远程服务器。

https://docs.microsoft.com/en-us/visualstudio/deployment/tutorial-import-publish-settings-iis?view=vs-2017

更多关于如何使用web deploy将web应用发布到远程服务器的详细信息,建议您可以参考以下文章:

https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/configuring-server-environments-for-web-deployment/configuring-a-web-server-for-web-deploy-publishing-web-deploy-handler