Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 332
user1679318 Avatar asked Sep 18 '12 06:09

user1679318


People also ask

How do I publish my website from Visual Studio to Azure 2017?

Create or open an Azure cloud service project in Visual Studio. In Solution Explorer, right-click the project, and, from the context menu, select Convert > Convert to Azure Cloud Service Project. In Solution Explorer, right-click the newly created Azure project, and, from the context menu, select Publish.

How do I publish my website in Visual Studio?

On the computer where you have the ASP.NET project open in Visual Studio, right-click the project in Solution Explorer, and choose Publish. If you have previously configured any publishing profiles, the Publish pane appears. Click New or Create new profile. Select the option to import a profile.


2 Answers

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

like image 190
Patrick McCurley Avatar answered Sep 27 '22 18:09

Patrick McCurley


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.

like image 44
AvkashChauhan Avatar answered Sep 27 '22 18:09

AvkashChauhan