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

Free Support Forum - aspose.com

Array was not long enough exception when opening file

var workbook = new Workbook(“sample.xlsb”);


produce me the exception. Sample.xlsb is attached.

Hi Dmitry,

Thanks for providing us simplified code and the sample xlsb file and using Aspose.Cells.

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

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-44280 - Array was not long enough exception when opening xlsb file

I have shown the exception as below for a reference.

Exception
System.ArgumentException was unhandled
Message=“Source array was not long enough. Check srcIndex and length, and the array’s lower bounds.”
Source=“mscorlib”
ParamName=""
StackTrace:
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length)
at ..Œƒ(Int32 )
at ..‹ƒ()
at ..Read( , )
at ..ƒa( , ™” )
at ..‰( , String , ™” )
at ..ƒ(™” )
at ..Read()
at ..Read(Workbook , LoadOptions )
at Aspose.Cells.Workbook.Ÿ(Stream , LoadOptions , Boolean )
at Aspose.Cells.Workbook.Ÿ(String , LoadOptions )
at Aspose.Cells.Workbook…ctor(String file)
at AsposeCells.Program.f1() in F:\Shak-Data-RW\Aspose\Libs\Projects\AsposeCells\Program.cs:line 49
at AsposeCells.Program.Main(String[] args) in F:\Shak-Data-RW\Aspose\Libs\Projects\AsposeCells\Program.cs:line 29
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
Hi again,

This is to update you that we have resolved the problem logged earlier as CELLSNET-44280. We will shortly share the fix here after ensuring the quality and incorporating other enhancements.

Hi,


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

We have fixed your issue now.

Let us know your feedback.

Thank you.

The issues you have found earlier (filed as CELLSNET-44280) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.