Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 同一计算引擎上的多个web应用_.net_Google Cloud Platform_Cloud_Google Compute Engine - Fatal编程技术网

.net 同一计算引擎上的多个web应用

.net 同一计算引擎上的多个web应用,.net,google-cloud-platform,cloud,google-compute-engine,.net,Google Cloud Platform,Cloud,Google Compute Engine,我有一个与Web API应用程序(后端)通信的.NET MVC应用程序(前端),我正在从Azure迁移到GCP 使用谷歌云平台,是否可以在同一计算引擎实例上同时拥有MVC和Web API Web应用程序(.NET Framework)?谷歌计算引擎指的是谷歌管理的虚拟机,您应该能够无问题地托管前端和后端服务。是的,这是可能的。计算引擎实例正在运行Internet Information Server(IIS),IIS可以运行多个网站 我将描述如何使用 为您的Web服务器下载.publishset

我有一个与Web API应用程序(后端)通信的.NET MVC应用程序(前端),我正在从Azure迁移到GCP


使用谷歌云平台,是否可以在同一计算引擎实例上同时拥有MVC和Web API Web应用程序(.NET Framework)?

谷歌计算引擎指的是谷歌管理的虚拟机,您应该能够无问题地托管前端和后端服务。

是的,这是可能的。计算引擎实例正在运行Internet Information Server(IIS),IIS可以运行多个网站

我将描述如何使用

  • 为您的Web服务器下载
    .publishsettings
    文件。在Visual Studio的Google Cloud Explorer窗口中,右键单击计算引擎实例并选择保存发布设置…
  • 本地保存
    .publishsettings
    文件
  • 在Visual Studio的解决方案资源管理器窗口中,右键单击应用程序名称,然后选择发布…
  • 选择导入配置文件,单击右下角的齿轮图标,然后单击创建配置文件。
  • 在项目窗口中,单击设置…
  • 在发布窗口中,为每个应用程序指定唯一的站点名称目标url
  • 单击保存
  • 单击发布。