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

Free Support Forum - aspose.com

ArgumentOutOfRangeException ver

When processing the attached File with Cells Version, I get the following exception.

code reference:

LoadOptions lo = new LoadOptions();
lo.Password = password;
_xls = new Workbook(filePath, lo);

{“Index and count must refer to a location within the buffer.\r\nParameter name: bytes”}

at System.Text.UnicodeEncoding.GetString(Byte[] bytes, Int32 index, Int32 count)
at . . (Byte[] , Int32& )
at . . (MultipleFilterCollection )
at . . (AutoFilter )
at . . ()
at . .Read( , )
at . . ( , )
at . . ( , String , )
at . . ( )
at . .Read()
at Aspose.Cells.Workbook. (Stream , LoadOptions , Boolean )
at Aspose.Cells.Workbook. (String , LoadOptions )
at Aspose.Cells.Workbook…ctor(String file, LoadOptions loadOptions)

Hi Angel,

Thanks for your posting and using Aspose.Cells.

We were able to observe this exception after running your sample code with your source xlsb file with the latest version: Aspose.Cells
for .NET v8.3.1.4

We have logged this issue in our database for investigation. We will look into it and fix this issue. Once, the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as

  • CELLSNET-43301 - Index and count must refer to a location within the buffer… exception on opening XLSB file


Please try our latest version/fix: Aspose.Cells for .NET v8.3.1.6

We have fixed your issue now.

Let us know your feedback.

Thank you.