【问题标题】:'ERROR_DESTINATION_NOT_REACHABLE:' Error When Trying to Deploy to Google Cloud Platform'ERROR_DESTINATION_NOT_REACHABLE:' 尝试部署到 Google Cloud Platform 时出错
【发布时间】:2019-10-10 12:12:46
【问题描述】:

我正在尝试为大学项目掌握 Google Cloud。

我在 VS 2019 上创建了一个 .NET Google Cloud 项目,我正在尝试将其部署到我在 Google Cloud Platform 上的 Windows 2016 服务器。

但是我不断收到错误消息: D:\Program Files\Microsoft Visual Studio\MSBuild\Microsoft\VisualStudio\v16.0\Web\Microsoft.Web.Publishing.targets(4284,5): msdeploy error ERROR_DESTINATION_NOT_REACHABLE: Web deployment task failed. (Could not connect to the remote computer ("35.235.58.62"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started.

到目前为止我已经尝试过:

  • 检查服务器的防火墙是否对入站 8172 开放
  • 禁用家用 PC 防火墙以确保不是问题
  • 在服务器上安装了 Web 平台安装程序
  • 通过 Web 平台安装程序添加了 ISS 管理服务
  • 在 ISS 上启用远程连接

任何关于解决方案的建议或帮助将不胜感激。

【问题讨论】:

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


    【解决方案1】:

    您是否在远程服务器上安装了 web deploy?

    远程部署也依赖于 Web deploy Agent 服务或 Web 管理服务。请确保它们已启动。然后你可以通过远程服务器的Tcping.exe进行测试来检查端口号是否被打开。

    该链接提供了如何从远程服务器使用管理服务发布的步骤:

    Web Deploy from Visual Studio 2012 to a remote IIS 8 server

    请记住像这样设置防火墙规则: 请确保windows防火墙和谷歌云外部防火墙都开启了8172端口。

    如果管理服务不工作,你可以试试远程代理

    https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/configuring-server-environments-for-web-deployment/configuring-a-web-server-for-web-deploy-publishing-remote-agent

    【讨论】:

      【解决方案2】:

      Jokies Ding 的第二部分让它为我工作。 (由于我的 stackoverflow 声誉点还不到 50,我无法对他的帖子发表评论)我觉得我正确地遵循了谷歌的指示,让 web 部署与 Visual Studio 一起工作,但我没有成功。

      这对我有用。

      如果管理服务不工作,你可以试试远程代理

      https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/configuring-server-environments-for-web-deployment/configuring-a-web-server-for-web-deploy-publishing-remote-agent

      按照 google 说明中的在线步骤设置网络部署,它应该是这样的:

      1. 安装网络部署
      2. 将用户添加到 IIS 管理器权限
      3. [skip] 检查 google 的防火墙规则(VPC 网络>防火墙规则)端口 8172(这不是必需的,因为此远程代理路由使用端口 80)
      4. 开始使用https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/configuring-server-environments-for-web-deployment/configuring-a-web-server-for-web-deploy-publishing-remote-agent
      5. (这是来自第 5 步的说明)在站点绑定中添加服务器名称作为主机名
      6. (这是来自第 5 步的说明)确保“Web 部署代理服务”服务正在运行
      7. 使用随附的屏幕截图示例配置 Visual Studio 发布配置文件(我无法让“Visual Studio > Build > Publish [Project Name] to Google Cloud...”工作。)

      【讨论】:

        【解决方案3】:

        安装 Web Deploy 时,请确保选择自定义安装并检查所有组件。这就是为我解决问题的原因。未选择 IIS 部署处理程序

        来源:Could not reach the Web Deploy endpoint on the specified virtual machine

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2019-09-27
          • 1970-01-01
          • 2019-04-24
          • 1970-01-01
          • 1970-01-01
          • 2020-05-01
          • 1970-01-01
          • 2016-11-11
          相关资源
          最近更新 更多