Search code examples
visual-studio-2017iis-8webdeploy-3.5

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


I installed IIS, Started Web Management Service, and Installed Web Platform Installer, checked the port, windows firewall is not enabled, shut down and started up, but still get the error that web deploy isn't installed when I try to publish with Web deploY in Visual Studio. What other configuration can I check to get the Web Deploy to complete?

Visual Studio 2017 Enterprise, IIS 10, Windows Server 2016, Web Deploy 5, ASP.net 4.6

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


Solution

  • 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

    According to your error message, it seems you used the wrong server address. The web deploy could find the remote server("aspnet-dev").

    Could you please tell me which server named "aspnet-dev"? On your current server or remote server?

    If you just want to publish the web application to current server (VS is installed in the IIS server) ,I suggest you could firstly open the current IIS management console to make sure you have used the right server name and IIS web applicatio name.

    Like below:

    enter image description here

    Then I suggest you could open the Web Platform Installer to check you have installed the web deploy.

    enter image description here

    If you want to publish the web application to remote server (VS isn't installed in the IIS server), I suggest you could use the server's IP address or domain instead of the server name like below:

    https://yourhostname:8172/
    

    Besides, I suggest you could refer to below article to generate the web deploy publish setting and use it to publish the web application to remote server.

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

    More details about how to use web deploy to publish web application to remote server ,I suggest you could refer to below article:

    https://learn.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