在64位Amazon Linux 2 / 2.0.2上运行的AWS Beanstalk Platform .NET Core发布版本错误

问题描述

enter image description here

enter image description here

我正在尝试使用Azure DevOps管道发布我的Elastic Beanstalka .NetCore项目,但是Azure DevOps管道也适用于Beanstalk Publish,而在还原,生成,发布步骤中没有任何问题,但在AWS Beanstalka日志文件中出现以下错误。 项目.Net Core 2.2 在AWS文档中:https://docs.amazonaws.cn/en_us/elasticbeanstalk/latest/platforms/platforms-supported.html#platforms-supported.dotnetlinux

Byte Array Size 3948
CheckSum Entity creating
CheckSum Entity file Name 20200911104812526.json
Byte array size 20854
Checksum e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

解决方法

我遇到了同样的问题。

我不知道这是否是答案,因为我是AWS新手,但我发现:

  1. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/dotnet-core-tutorial.html上的说明仅在使用 Windows服务器创建环境时才有效。实际上并没有说出来。它说:
  1. 对于Platform,请选择与您的应用程序使用的语言相匹配的platform和platform分支。

但是在下一节中,它说:

IIS是在Amazon EC2上运行应用程序的Web服务器 Elastic Beanstalk环境中的实例。

IIS仅在Windows上运行。因此,这意味着这些说明适用于Windows。

  1. 如果要使用Linux,只需使用site.zip文件即可按照这些说明进行创建和上传。您不需要清单文件或zip-within-zip。只需上传site.zip。