user1679318
user1679318

Reputation: 383

Not able to publish website on Windows Azure using publish through VS2010

I am facing this problem when I try to publish my web application on Windows Azure via Visual Studio 2010. I am trying by right click on project and select publish and importing publish profile downloaded from Windows Azure platform.

I am getting this error:

Error 1 Web deployment task failed. (Could not connect to the remote computer ("waws-prod-am2-001.publish.azurewebsites.windows.net"). 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.) 0 0 MeraSungard

Upvotes: 38

Views: 44032

Answers (12)

rollsch
rollsch

Reputation: 2770

Disabling my VPN resolved the issue for me.

Upvotes: -2

Saurabh Kulkarni
Saurabh Kulkarni

Reputation: 69

Alas, restarting web deploy with complete setup option solved my issue. make sure you have management services started in background from IIS management tool.

Upvotes: 0

Patrick McCurley
Patrick McCurley

Reputation: 2054

For those that the answer didn't work for (like me). Alternatively you can set an app setting in your Azure Website:

  1. Set WEBSITE_WEBDEPLOY_USE_SCM = false in Azure Management Portal settings (under Website → Configuration → Application Settings). Make sure false is in the value field.

  2. Download the publish settings again in VS or whatever you use to deploy.

  3. Deploy successfully.

Taken from:

https://social.msdn.microsoft.com/Forums/en-US/efa56eb2-a8b2-4690-92d0-33d97946ed29/cant-deploy-could-not-connect-to-the-remote-computer-xxxscmazurewebsitesnet-using-the?forum=windowsazurewebsitespreview

Upvotes: 83

Winks
Winks

Reputation: 710

I do not save the password in my publish profile. Even after checking and double checking the password from the portal and entering it when prompted, the publish failed. I knew the problem had something to do with the password because I could enter any bogus password and still get the same exact publish failed error.

What I did was click "Configure" on the publish tab of my project and click on "Validate Connection" on the "Connection" tab after entering the credentials again.

It was able to validate successfully and all subsequent publishes have been successful as well.

Upvotes: 0

WooHoo
WooHoo

Reputation: 1922

Same problem here, slightly different solution. I restrict access to the website using the IP. This is done from app services->Networking->Configure Access Restrictions.

My fix was to add the IP to both tabs, the website tab and the scm tab.

Upvotes: 0

Paul Schroeder
Paul Schroeder

Reputation: 1601

Make sure you don't have a web debugging proxy running which logs all HTTP(s) traffic between your computer and the Internet. My issue was that Fiddler was running because I was debugging a Web API. I was able to publish successfully after closing Fiddler.

Upvotes: 3

Flappy
Flappy

Reputation: 867

Resetting your "publish profile" also works :) You can reset it from the Azure Portal at your web app. enter image description here

Upvotes: 17

serg.salo
serg.salo

Reputation: 580

try to run Visual Studio as admin. This solved my problem.

Upvotes: 5

mihkov
mihkov

Reputation: 1189

I want to share my solution with the same problem. Also MsDepSvc (Web Deployment Agent Service) and WMSvc (Web Management Service) were running on the remote VM and Visual Studio 2015 still returns an error.

I go to Azure portal > All Resources > Find my Network Security Group and click on it. > Inbound security rules and add new rule:

Name: your choice.
Source: Any.
Service: Custom
Protocol: Any
Port range: 8172
Action : Allow

Upvotes: 2

maskitto
maskitto

Reputation: 61

I faced the same problem when trying to deploy to Azure from VS2013 update 5. It happens intermittently. Sometimes publishing works, sometimes it doesn't. In my case it turned out to be network related. We use a load balancing router with two WANs connected to it. If the external IP address changes during the deployment process, because the router switched WANs, it fails. Hope that will help someone.

Upvotes: 1

BLuM
BLuM

Reputation: 661

For me publishing start working after network reconnect.

Upvotes: 2

AvkashChauhan
AvkashChauhan

Reputation: 20571

When you are trying to publish your web application from VS2010 to Windows Azure Websites, the publish process connect to Windows Azure Websites on specific port which is enabled for Web Deploy service. In VS 2010 if the connection to this service port is failed then VS return error as "Web Deploy is installed........ on remote server. The fact is that the WebDeploy service is already running and other machines could connect to the same server and deploy the problem is specific to your network and your machine.

There are two main place to look for 1) your deployment machine firewall 2) Proxy server if you are behind proxy. Try to change the network related settings locally so you can get it working.

Upvotes: 10

Related Questions