使用Visual Studio Team Services将ASP.Net Core应用程序部署到Azure网站时出现ERROR_DESTINATION_NOT_REACHABLE错误。

时间:2016-06-06 19:37:02

标签: azure asp.net-core azure-devops msdeploy

我正在部署在Visual Studio Team Services上存储在Git中的ASP.NET Core应用程序。我一直在关注这个过程(https://www.visualstudio.com/en-us/docs/build/apps/aspnet/aspnetcore-to-azure);但是,我在部署步骤中收到以下错误,而且我遇到了一堵砖墙。我已经确认我在xxx.com和www.xxx.com上有SSL证书,但它仍然失败了。任何想法?

  

错误代码:ERROR_DESTINATION_NOT_REACHABLEMore信息:无法连接到远程计算机(“www.xxx.com”)。在远程计算机上,确保已安装Web Deploy并且已启动所需的进程(“Web管理服务”)。有关详细信息,请访问:http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.Error:远程服务器返回错误:(404)Not Found.Error count:1。

1 个答案:

答案 0 :(得分:0)

尝试在“PublishAspNet5Website.ps1”中添加以下脚本,以查看哪个是正确的MSDeploy URL:

Write-Output $website.EnabledHostNames[0]
Write-Output $website.EnabledHostNames[1]
Write-Output $website.EnabledHostNames[2]
...

链接供您参考:

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”)

相关问题