Using Aspose.Cells .NET in docker container - Object Reference not set error in Windows Container

Hi Team,

In our application we are using 7.5.1.0 version of Aspose.Cells library. We are getting Object Reference error after the application is deployed in Windows container. Below is the error:

Object reference not set to an instance of an object. at „Ÿ�.Œ��.Ÿ�(String , Int32 , FontStyle )
at ��.‚��.�‰�(WorksheetCollection )
at Aspose.Cells.WorksheetCollection.�‰�()
at Aspose.Cells.WorksheetCollection…ctor(Workbook )
at Aspose.Cells.Workbook.�Ÿ�(String , LoadOptions )
at XXXXXXXX(String fileName, String userName) in XXXXXXXX:line 1028

Is Aspose.Cells library compatible with Windows Containers? Or anything else needs to be taken care to deploy into windows containers?

Can you please assist me on this.

Regards,
Sasmita Sahoo

@sasmitasahoo,

Since you are using older version of the product, so we are not sure about it. Neither we can evaluate your issue using the older version that you are using. We can only recommend you to kindly upgrade to and try our latest version/fix, e.g. Aspose.Cells for .NET v20.6. The newer versions provide different advanced Dlls (e.g., for .NET 4.0, .NET 5.0 and .NET Standard/Core framework versions). Users can use Aspose.Cells in docker container, see the document for your reference.

@Amjad_Sahi Thanks for your response.

I used the latest version of the library in a sample application and deployed it in windows container. It’s working fine.

We will upgrade the library to latest version in our application.

@sasmitasahoo,

Good to know that your issue is resolved using the latest version of Aspose.Cells APIs. In the event of further queries or issue, feel free to write us back. We will be happy to assist you soon.