Aspose.Notes 22.1 throws a System.ArgumentOutOfRangeException while processing certain OneNote files

Aspose.Notes 22.1 throws a System.ArgumentOutOfRangeException while processing certain OneNote files.

A customer of ours reported an issue they were facing when they were trying to process a OneNote file saying that it was skipped. When we investigated the issue we found a System.ArgumentOutOfRangeException. Added below is a stack trace from the log.

Type:
System.ArgumentOutOfRangeException

Message:
Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

StackTrace:
at System.Collections.BitArray.Get(Int32 index)
at .()
at .(Int32 )
at .(Int32 )
at . ()
at ​.( )
at ​.( )
at ​.( )
at ​.( , )
at ​.()
at ​.()
at ​.()
at ​.()
at ​.(Stream )
at .(Stream )
at .(Stream , String )
at .(Stream , String , Boolean )
at .(Stream , Document , LoadOptions )
at Aspose.Note.Document…ctor(Stream inStream, LoadOptions loadOptions)
at Aspose.Note.Document…ctor(Stream inStream)
at LinkTek.LinkFixer.FileHandlers.OneNoteFileHandler.#bxd(Filespec #Kn, LoadOptions #Sh, FileAccess #Tp, AppError& #Ln)
at LinkTek.LinkFixer.FileHandlers.BaseFileHandler.#2Xe(LinkFixerFileInfo #eAd, LoadOptions #4Xe, FileAccess #Tp, AppError& #Ln)
at LinkTek.LinkFixer.FileHandlers.BaseFileHandler.#1(LinkFixerFileInfo #eAd, DataLayerManager #EBd)

Also attached here is the link to the sample project and the file that throws this exception: Aspose-41

@vikram.venugopal,

I tested using your sample onenote document and found Aspose.Note throws “System.NullReferenceException ‘Object reference not set to an instance of an object’” while processing your file with newer versions. Anyways, we have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): NOTENET-5738

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@amjad.sahi
We’ve purchased the Business support plan for the developer OEM license that we have. Can the Issue “NOTENET-5738” be transferred to the paid support management team now to prioritize and expedite resolution?

@LinkTek1,

Please use your Paid Support Account/Subscription and post a query in our Paid Support Helpdesk. Just mention the link of this forum thread and the issue ID(s) that you want to raise priorities of.