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

Free Support Forum - aspose.com

Aspose.Cells For .Net version Throws a Null Pointer Exception While Saving a Workbook

I have created a method which takes a workbook and saves it using the library method Save().

public Workbook Save(Workbook workbook)
workbook.Save(workbook.FileName, FileFormatType.Xlsx);
return workbook;

But while saving this throws a null pointer exception as follows:
NullReference Exception was unhandeled by user code.
"Object reference not set to an instance of an object."

This code works fine on 32-bit machines, but it breaks on 64-bit machines.
Also this works only with version, in 64-bit machines.


Aspose.Cells is fully compatible with 64bit environments. Please use the Aspose.Cells.dll file in "net2.0" folder (at your installation direcotry), see the topic for your general reference :

If you still find the issue, create a separate simple console application, zip it and post it here to show the issue, we will check it soon.

Also, give us your 64bit machine details, e.g OS, .NET framework, etc.

Thank you.