【发布时间】:2018-03-22 18:27:19
【问题描述】:
我正在尝试通过 Visual Studio 将我的 .NET Framework 应用程序部署到 Google Compute Engine,但我不断收到以下错误消息。
纠正错误的步骤
我的 Web 管理已启动,Web 部署已安装,并且我的云实例的 Extral IP 地址已作为新的连接字符串添加到 web.conf 文件中。以前有没有遇到过同样的问题,如果有,你是怎么解决的。
谢谢。
Web deployment task failed. (Could not connect to the remote computer
("35.196.125.112"). 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.)
第一个问题已解决,下面是新问题
我正在尝试使用 IIS7 将我的 .NET Framework 应用从 Visual Studio 部署到 Windows 7 上的 Google Compute Engine。我正在使用 CustomProfile 部署到我的应用程序,并且我的应用程序使用数据库。我没有修改 web.config 文件(我怀疑这个问题),我尝试将外部 IP 添加为我的数据源但没有运气,因此我使用它来迁移和更新我的本地数据库。任何帮助将不胜感激。
网页配置
<add name="ClassifiedDB" connectionString="data source=.\SQLEXPRESS;user
id=UID;password=PWD initial catalog=ClassifiedDB;integrated security=True" providerName="System.Data.SqlClient" />
我没有在 Web 配置文件中设置 google 任何内容。
【问题讨论】:
-
您的数据库在哪里运行?并且可能为新问题创建一个新线程,因为它们不相关。
标签: .net asp.net-mvc-5 google-compute-engine