Free Support Forum -

Aspose.Note unable to process OneNote files

Attempting to instantiate a Document object with the attached files results in the following exceptions, respectively:

“The given key was not present in the dictionary.”
“Page node is missed.”

Example Code:

using (var fileStream = new FileStream(TestFileLocation + @"\\" +TestFileName,                 FileMode.OpenOrCreate))
var noteBook = new Document(fileStream);
} (7.8 MB)

We were able to observe the issues but we need to look into them more. We have logged the issues in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue have been logged as

NOTENET-2980 – Exception 'The given key was not present in the dictionary.' while loading .ONE file (

NOTENET-2981 – 'Page node is missed' exception while loading .ONE file (

Regarding the “Page node is missed” issue, it is the known issue and we are working on it.
In the meantime there is a workaround: if access to history pages is not required then the document can be loaded by the code below.

new Document(@"", new LoadOptions() { LoadHistory = false })

We are working on this issue and will write back here as soon it is fixed.