Index was out of range. Must be non-negative and less than the size of the collection. Error on opening ppt file

Hi guys,

We’re using Aspose Slides .NET version 20.4 and receiving an error when opening and saving the attached ppt file.

Error is
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

ProblemPresentation.zip (8.1 MB)

Code to duplicate :

Presentation pres = new Presentation(“C:\ProblemPresentation.pptx”);
pres.Save(“C:\OUTPUT.pptx”, Aspose.Slides.Export.SaveFormat.Pptx);

Thanks,
Daniel

@DanielNoacl,

I have tried using Aspose.Slides for .NET 20.4 on my end and have not been able to observe any issue. Are you sure, if you are using Aspose.Slides for .NET 20.4. If there is still an issue then please share the working sample project with us.

Hi mate,

I just realized the error is occurring on the save operation, not the open. So the code to reproduce is

Presentation pres = new Presentation(“C:\ProblemPresentation.pptx”);
pres.Save(“C:\OUTPUT.pptx”, Aspose.Slides.Export.SaveFormat.Pptx);

Apologies. I’ve updated the original post to reflect this.
Dan

@DanielNoacl,

I have worked with the presentation file shared by you and have been able to observe the issue specified. An issue with ID SLIDESNET-41901 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.