PPT file failed to load and throw exception "An item with the same key has already been added"

Hi,

When trying to load a ppt file, an exception was threw:“An item with the same key has already been added”. I’m using Aspose Slides .Net 18.4.0.

Below is my sample code:

FileStream fStream = new FileStream(inputPptFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
Presentation presetation = new Presentation(fStream);

I tried to check this error in Internet and found out that this issue happened before and fixed in Aspose.Slides .NET 16.4.0, but now, it didn’t work with Aspose Slides .Net 18.4.0.

This is the sample: sample.zip (210.6 KB)

Please help and give me some advise for this issue.

Thanks,

Dung H. Nguyen

@dunghnguyen,

I have observed the information share by you and suggest you to please first try using latest Aspose.Slides for .NET 18.9 on your end. Secondly, when loading presentation using stream, please set the stream position to 0 before loading the presentation. I hope the shared information will be helpful.