Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-core/3.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
Google app engine 将ASP.NET Core 2.1发布到Google云平台显示错误:错误字符范围_Google App Engine_Asp.net Core_Google Cloud Platform_Asp.net Core 2.1_App Engine Flexible - Fatal编程技术网

Google app engine 将ASP.NET Core 2.1发布到Google云平台显示错误:错误字符范围

Google app engine 将ASP.NET Core 2.1发布到Google云平台显示错误:错误字符范围,google-app-engine,asp.net-core,google-cloud-platform,asp.net-core-2.1,app-engine-flexible,Google App Engine,Asp.net Core,Google Cloud Platform,Asp.net Core 2.1,App Engine Flexible,当我尝试将ASP.NET Core 2.1 Web应用程序发布到Google Cloud Platform应用程序引擎时,我得到一个错误gcloud Crash(错误):错误字符范围 我使用GCP Visual Studio 2017扩展版发布,得到了上述错误 我在我的项目中使用app.yaml从cmd发布,得到了上述错误 为了将ASP.NET Core 2.1 web应用程序部署到Google Cloud App Engine,我添加了一个包含以下内容的App.yaml文件: runtime:

当我尝试将ASP.NET Core 2.1 Web应用程序发布到Google Cloud Platform应用程序引擎时,我得到一个错误gcloud Crash(错误):错误字符范围

我使用GCP Visual Studio 2017扩展版发布,得到了上述错误

我在我的项目中使用app.yaml从cmd发布,得到了上述错误

为了将ASP.NET Core 2.1 web应用程序部署到Google Cloud App Engine,我添加了一个包含以下内容的App.yaml文件:

runtime: aspnetcore
env: flex
我做了以下工作:

添加了app.yaml和

runtime: aspnetcore
env: flex
将其添加到csproj

 <ItemGroup>
    <None Include="app.yaml" CopyToOutputDirectory="Always" />
  </ItemGroup>
但是我得到了错误:gcloud崩溃(错误):坏字符范围

有人知道我做错了什么吗

我遵循以下指南,在尝试方法1、2和3时仍然会遇到相同的错误:

对此有一个解决方案。
这是213.0.0中的一个已知问题。请尝试使用最新版本,如果仍然无法使用,请使用212版本。

正在使用

我得到了它与以下工作

我下载了GCP SDK 174.0.0,然后使用GCP Visual Studio扩展进行了尝试,结果显示错误:

{
    "error": {
    "code": 403,
    "message": "SSL is required to perform this operation.",
    "status": "PERMISSION_DENIED"
  }
}
所以我在我的internet选项中打开了SSL 3.0,然后它就工作了


您需要GCP SDK 174.0.0或更高版本才能使用GCP Visual Studio扩展。

您确定yaml文件中没有任何非ascii字符吗?您不使用azure:)即使我尝试一个空的yaml文件,也会显示错误。奇怪的是,当我使用GCP Visual Studio扩展名尝试它时,它也会给出错误,并且没有yaml文件。我现在使用的是215.0.0。我将尝试一些旧版本,看看它们是否给出相同的错误。
{
    "error": {
    "code": 403,
    "message": "SSL is required to perform this operation.",
    "status": "PERMISSION_DENIED"
  }
}