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

Free Support Forum - aspose.com

Aspose.Cells AutoFitColumns() failing when deployed to AWS Lambda

sheet.AutoFitColumns(); is failing when .net code is deployed to AWS Lambda, it is working on windows OS. Please refer attached image for error details.

Environment: AWS Lambda which runs on AWS AMI 2
Aspose.Cells version: 21.9

MicrosoftTeams-image.png (41.3 KB)

@dchaudhari,
Please share which version of the product are you using i.e. is it .NET, .NET Core or .NET Standard.

.Net Core 3.1

@dchaudhari,
Many users have reported a similar error “Type initializer for threw an exception”. Could you please try the following steps and share your feedback as in many cases these steps has resolved the issue.

install libgdiplus:
apt-get update
apt-get install -y libgdiplus
cd /usr/lib && ln -s libgdiplus.so gdiplus.dll

And install libc6-dev:
apt-get install -y --no-install-recommends libc6-dev