We are evaluating the aspose.cells (evaluation version) to perform excel creation and it has to run as part of azure function app. Everything works locally on the development environment, but having issues when azure function app deployed.
Please find the error details.
Error|The type initializer for ‘Aspose.Cells.Workbook’ threw an exception
System.TypeInitializationException: The type initializer for ‘Aspose.Cells.Workbook’ threw an exception.
—> System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=18.104.22.168
I have checked the references and those are added correctly.
aspose.cells version used in project: 21.1.0
Workbook workbook = new Workbook(FileFormatType.Xlsx);
Worksheet worksheet = workbook.Worksheets;
Could you please help regarding this?