使用Google Cloud Service&部署时出错asp.net

时间:2018-02-14 22:41:27

标签: c# asp.net google-cloud-platform

我正在跟随Google的演示步骤,使用Visual Studio Code在教程中部署一个简单的Hello世界(教程:https://cloud.google.com/dotnet/docs/getting-started/hello-world)。当我进入步骤"将应用程序部署到Windows实例时#34;我收到以下错误: Time Elapsed 00:00:05.72 msdeploy.exe -verb:sync -source:contentPath="C:\Users\PhilippeTrudel\AppData\Local\Temp\wjb0vfk2.mhs" -dest:contentPath="Default Web Site",publishSettings="C:\Users\PhilippeTrudel\AppData\Local\Temp\tmpABC8.tmp" -allowUntrusted Info: Using ID 'f848fc7f-44cb-4243-9743-ef34b9cc3877' for connections to the remote server. Error Code: ERROR_DESTINATION_NOT_REACHABLE More Information: Could not connect to the remote computer ("35.225.64.241"). 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: Unable to connect to the remote server Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 35.225.64.241:8172 Error count: 1. Failed to publish project 1-hello-world.

我真的不知道该怎么做,谢谢你的帮助

1 个答案:

答案 0 :(得分:1)

您的服务器似乎在端口80上打开,端口8172未打开。超时通常意味着防火墙可能阻止访问服务器。

您可以尝试以下方法:

确保使用与visual studio相同的.NET框架安装服务器

  • (例如ASP,ASP.net 4.5 ......)

  • 确保服务器上的端口8172已打开(8172用于Web 部署)

  • 计算机上的防火墙未阻止对服务器的请求