Error opening a password protected workbook (Aspose.Cells): "Index and count must refer to a location within the buffer. Parameter name: bytes"

Hi,
I encountered an error while opening a password protected workbook using Aspose.Cells (version: 5.1.3.0).
I have seen this issue has been raised on the Aspose website, but I couldn’t find a answer leading to a solution.
Can you help please? Thanks.

Registered error information:

_COMPlusExceptionCode -532459699

RangeMessage "Specified argument was out of the range of valid values."

Message:
Index and count must refer to a location within the buffer.
Parameter name: bytes

Source:
at System.Text.UnicodeEncoding.GetString(Byte[] bytes, Int32 index, Int32 count)
at Aspose.Cells.Workbook.Ԟ(࣪ ԟ)
at Aspose.Cells.Workbook.Ԛ(String ԛ, LoadOptions Ԝ)
at Aspose.Cells.Workbook…ctor(String file, LoadOptions loadOptions)
at Company.Application.Services.ExcelService.OpenExcelFile(String excelFile, String password) …

Hi,

Please download and try the latest version:
Aspose.Cells for .NET v7.0.2.0


If the problem persists, then please provide us your password protected source file and also provide us the password.

We will soon look into it and help you asap.