IIS 7 and Above
Web Deployment not working (ERROR_DESTINATION_NOT_REACHABLE)
Last post Sep 04, 2017 07:25 AM by Yuk Ding
Sep 01, 2017 04:24 PM|ZMQuestions|LINK
I have a Web Application (ASP.Net 4.5). I use Visual Studio 2012 Update 5 in the client computer. In the server side I use an Azure Virtual Machine (Windows Server 2016 - Version 1607).
In the client side I click on Publish / Import and I use the .PublishSettings file I got from the server. I get (in the client side when clicking on "Validate Connection") an error ERROR_DESTINATION_NOT_REACHABLE
In the server and "Destination URL" fields I put the IP address (instead of the computer name that is what was exported). In the user name I leave the domain/userName and I well type the password.
In the server side I disabled the Firewall for testing purposes. If I make a ping to the Azure VM I don't get anything (same with the PSPing from SysInternals). This is not strange since although the Firewall is disabled in that computer, I had read that
there is another layer in the Azure platform that blocks pings.
However if in the client side I change the IP address I get another error instead of ERROR_DESTINATION_NOT_REACHABLE. This means that the server was at least "contacted".
In the server side I followed all instructions... I installed the more roles I could. When (in the server) I go to the "Internet Information Services" and I click on the computer node, in the Management section I get: Configuration Editor Feature Delegation
IIS Manager Permission IIS Manager Users Management Service Management Service Delegation Shared Configuration Web Platform Installer
If I click on the Default Web Site I only get: Configuration Editor IIS Manager Permission Web Platform Installer
The way I got the .PublishSettings file was by going to the "Default Web Site" and doing a Right click, then Deploy, Configure Web Deploy Publishing. Doing: net start MsDepSvc net start WmSvc tells me that "The requested service has already been started."
In the roles I have "Windows Deployment Services" installed (with the child nodes checked) In Web Server (IIS), Management Service is installed.
Regarding other roles, I don't have the "DNS Server" nor the "DHCP Server" installed, I don't know if that matters.
So, I think I have all in order but for any reason it does not work.
Thanks in advance.
Sep 04, 2017 07:25 AM|Yuk Ding|LINK
This link provide the complete instruction about how to publish the web application to the Azure VM.
Please ensure you didn't missing any steps and the IIS site has been created on the remote azure VM. In addition, please check whether 8172 port has been blocked.
Besides, please ensure you have set the IIS manager permission in Azure IIS manager.