FileCorruptedException when opening OneNote files


#1

A FileCorruptedException is thrown when trying to open a .one document with Aspose.Note.

The exception message is “The MD5 hash is not correct for referenced struct.”

The .one file was created with MS OneNote 2016 and can be opened with OneNote without any problems.

This exception is thrown when using Aspose.Note for .NET 17.8 as well as the lastest available version 18.9, when executing the following code:

// filePath points to the file: Section B.one
var fileStream = new FileStream(filePath, FileMode.Open);
var doc = new Aspose.Note.Document(fileStream);

Files:
Files.zip (175.1 KB)


#2

@JohnGrahamLT

We have reproduced this issue and it has been logged under ID “NOTENET-2675” for further investigation. You will automatically be informed here once we have more information to share.