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

Free Support Forum - aspose.com

Aspose.Cells For .Net version 7.0.3.0 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 5.3.1.0, in 64-bit machines.

Hi,

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 :
http://www.aspose.com/documentation/.net-components/aspose.cells-for-.net/using-aspose-cells-component-on-32bit-and-64bit-platforms.html

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.