We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exception "Could not load file or assembly ‘System.Text.Encoding.CodePages’"

When i tried using Aspose in AWS lambda function im getting below file load exception.

FileLoadException: Could not load file or assembly ‘System.Text.Encoding.CodePages, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. Could not find or load a specific file. (Exception from HRESULT: 0x80131621)

Please help me out.


This Topic is created by Amjad_Sahi using Email to Topic tool.


Thanks for the details.

There are some dependencies for Aspose.Cells for .NET Standard/Core framework which you also need to install. If you could check the release page on Nuget, e.g
now click on Dependencies node you will see the following entries:

.NETStandard 2.0

  • System.Drawing.Common (>= 4.7.0)
  • System.Text.Encoding.CodePages (>= 4.7.0)

So, you need to install these APIs as well to work with Aspose.Cells on AWS lambda.