ERROR_DESTINATION_INVALID in windows Azure - azure

I have created simple MVC4 website for windows Azure by following this tutorial: https://www.windowsazure.com/en-us/develop/net/tutorials/web-site-with-sql-database/
At step-8, where I am supposed to "Validate Connection", I get an ERROR_DESTINATION_INVALID error.
Editor: Visual Studio 2012 (Winsows Azure tools SP1)
OS: Windows 7
Tried restarting Studio and restarting computer options. Also tried recreating website in manage.windowsazure.com
Logs:
Start Web Deploy Publish the Application/package to https://waws-prod-bay-001.publish.azurewebsites.windows.net/msdeploy.axd?site=trackme ...
2>Starting Web deployment task from source: manifest(C:\.SourceManifest.xml) to Destination: auto().
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4377,5): Error ERROR_DESTINATION_INVALID: Web deployment task failed. ( Could not connect to the remote computer ("waws-prod-bay-001.publish.azurewebsites.windows.net"). Make sure that the remote computer name is correct and that you are able to connect to that computer. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_INVALID.)

As your publish from VS is not completed due to this error, there are couple of things which could go wrong.
Based on error info it seems the connection to Windows Azure Websites deployment server was unsuccessful. I just pinged the waws-prod-bay-001.publish.azurewebsites.windows.net deployment server and got the IP address so would you please check and verify if you get the same. Also you may need to verify that there are no networking issue which could cause this problem.
Also if you have SQL Database configured with your publish profile then there are two servers needs to be connected during deployment. So if this error occurred when you have had SQL Database configured or before that? Sometime this error is sporadic so you may have to consider as well.

If web deploy fails, publish using FTP. You can download publish settings for you site from Azure portal, under dashboard, click "Download the publish profile". In Visual Studio, when you publish, select Profile, and then Import. Import the settings file. Then unselect the Web Deploy and select the FTP deploy. This worked for me when Web Deploy refused to work (even with the downloaded web deploy settings).

Related

Unable to web deploy to Linux App Service from Visual Studio 2019

For about 2 weeks now I am unable to web deploy from Visual Studio 2019 16.9.6. I have an ASP.NET Core 3.1 MVC application that I am trying to web deploy to a Linux App Service on Azure. When I try to publish I get the following errors:
Publish has encountered an error.
Build failed. Check the Output window for more details.
A diagnostic log has been written to the following location:
"C:\Users\ken\AppData\Local\Temp\tmpF3BF.tmp"
An error occurred when the request was processed on the remote computer.
The server experienced an issue processing the request. Contact the server administrator for more information.
Prior to two weeks ago I had no issues. The following is a list of items I have tried:
Stopped and started the app service
Stopped the app service and tried deploying while it was stopped
Reset the publish profile and re-imported it into Visual Studio
If I edit the publish profile and click "Validate Connection" it fails and gives the same error message as above:
An error occurred when the request was processed on the remote computer.
The server experienced an issue processing the request. Contact the server administrator for more information.
I am able to publish locally and use an FTPS client to connect to the app service and manually deploy the files.
I deleted the current publish profile and instead of downloading it from the Azure portal I used the new publish profile wizard built into Visual to create the publish profile. Once I did that everything started to deploy with no issues. I looked at what the difference is and it seems the publish profile I downloaded from Azure was missing an XML element called "IsLinux".

Unable to connect to Azure server using FTP

I have developed an app service in Microsoft Azure and am working on it. Now I want to download my source code from the Azure server to my local machine. I have tried using FTP but I am unable to establish a connection.
I don't know what I'm missing from this link: https://medium.com/#michaelhenderson/how-to-download-your-source-code-from-azure-app-service-59c848752b0f.
Can anyone help me out with the issue?
Thank you.
There could be several reasons for the FTP issue, the exact error message may provide some pointers.
Azure App Service supports connecting via both Active and Passive mode. Passive mode is preferred because your deployment machines are usually behind a firewall.
Kindly check this document: https://learn.microsoft.com/azure/app-service/deploy-ftp#get-ftp-connection-information
Alternatively, you could copy files directly from Kudu console to local: http://yourwebappname.scm.azurewebsites.net/
(append ‘scm’ to the default WebApps emphasized above)
Navigate to cmd button and you can find your project files under site/wwwroot folder
Also, you could clone the WebApp from Azure App Service to your local Visual Studio (VS) by using VS team explorer.

Azure Devops Connectivity\build agent issues post IIS Website URL change

We are using Azure Devops 2019 (App and data tiers are on different servers),We have done a domain migration due to which we had to change Devops URL from https:\Devops.OldDomain.com to https:\Devops.NewDomain.com
Below are the steps followed
Changed URL on IIS Devops Site and applied a third party certificate for https ( made sure certificates are added to trusted Root Cert)
Changed Public URL (changed the url to new Devops Url) from Devops admin console ( verified the access point from tbl_AccessMapping and updated it to new url)
Restarted the Devops server
Below are the issues identified
1)I have noticed build agents stopped working\offline and when I try to setup new agents, I see below
"An error occurred while sending the request.Failed to connect. Try again or ctrl-c to quit"
tried changing agent file to correct url (yet no luck)
2)When I launch Azure devops admin console I see below error
When I try to add Devops url from visual studio (Visual studio is installed inside Devops server) I see below error
"TF400324:Azure Devops services are not available from server, The underlying connection was closed"
Am I missing anything? I understand that some communication is missing between Application and Data tire, but I could not identify whats going wrong
Try to clear the following caches:
Clear TFS caches %LOCALAPPDATA%\Microsoft\Team Foundation\x.0\Cache
Delete the contents of the Cache directory, including all subfolders.
Regarding VS, close all Visual Studio instances, delete %LOCALAPPDATA%.IdentityService.
Reset IIS by pressing Win+R, and input iisreset in the Run.

Deploying ASP.Net Core application to Azure Website using Visual Studio Team Services has an ERROR_DESTINATION_NOT_REACHABLE error.

I'm working on deploying an ASP.NET Core application stored in Git on Visual Studio Team Services. I've been following this process (https://www.visualstudio.com/en-us/docs/build/apps/aspnet/aspnetcore-to-azure); however, I receive the following error on the deployment step, and I'm running into a brick wall. I have verified that I have an SSL cert on xxx.com and www.xxx.com, but it still is failing. Any Ideas?
Error Code: ERROR_DESTINATION_NOT_REACHABLEMore Information: Could not connect to the remote computer ("www.xxx.com"). 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.Error: The remote server returned an error: (404) Not Found.Error count: 1.
Try adding following script in "PublishAspNet5Website.ps1" to see which is the correct MSDeploy URL:
Write-Output $website.EnabledHostNames[0]
Write-Output $website.EnabledHostNames[1]
Write-Output $website.EnabledHostNames[2]
...
Links for your reference:
Resolve an ASP.NET 5 Deployment Issue to Azure Web App Slot
MSDeploy to Azure Web App: Could not connect to the remote computer using the specified process (“Web Management Service”)

Publishing web application works in Visual Studio, but generated package cmd file fails with insufficient permissions

I'm trying to deploy a web application from the command line. Eventually I'll do this from my build server (running Jenkins), but for now I'm doing it from my desktop.
My web server runs Windows Server 2012. I'm using Visual Studio 2012 on the desktop. Within Visual Studio, publishing directly, using the Web Deploy method, works fine. If instead I use the Web Deploy Package method, then run the generated .cmd file, it fails with
Error: (3/14/2013 7:35:49 PM) An error occurred when the request was processed on the remote computer.
Error: An error occurred when reading the IIS Configuration File 'MACHINE/REDIRECTION'. The identity performing the operation was 'WEB\uoedeploy'.Error: Filename: \\?\C:\Windows\system32\inetsrv\config\redirection.config
Error: Cannot read configuration file due to insufficient permissions
Following instructions from Microsoft and elsewhere, I have created an account on the web server for publishing, and I use the same account credentials for both publishing methods. I added that user to the group MSDepSvcUsers on the web server. I checked the effective permissions for that account on redirection.config, and it shows read permission.
I hate MSDeploy.

Resources