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