IndexOutOfRangeException Occurs when Saving PowerPoint Presentation in C#

Hi,

I got System.IndexOutOfRangeException:Index was outside the bounds of the array. when saving a slide.
Using SDK: Aspose.Slides for .Net 23.12

Using code

Presentation document = new Aspose.Slides.Presentation("2016文科老师普通话培训(1).ppt");
document.Save("out.ppt", Aspose.Slides.Export.SaveFormat.Ppt);

Using file:
2016文科老师普通话培训(1).7z.001.7z (4.8 MB)

2016文科老师普通话培训(1).7z.002.7z (4.8 MB)

2016文科老师普通话培训(1).7z.003.7z (3.7 MB)

@kngstr,
Thank you for contacting support. I am working on the issue and will get back to you soon.

@kngstr,
Unfortunately, I was unable to open the archive you shared: error.png (11.5 KB). Please try using a file storage (Google Drive, Dropbox, etc) to share a link to the presentation file.

Sorry. I forgot to tell you.
Remove the last ‘.7z’, then decompress xxx.7z.001.
This is a file, compressed in 7z volumes

@kngstr,
Thank you for contacting support. I’ve reproduced the exception you described.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-44364

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Please also share the following additional information if it is possible:

  • OS version on which the error occurred
  • .NET target platform in your app

@andrey.potapov

Thanks.

Tested OSs were Win7 and Win10
.NET target platform is .net 6.0

@kngstr,
Thank you for the additional information. I’ve added it to the issue ticket.

Another file got error when saving.
Same code, OS, .NET target platform.

Aspose.Slides.PptException
  HResult=0x80131500
  Message=Serialization of external storage with empty data. View [ms-ppt] 2.10.34 ExOleObjStg, 2.10.37 ExControlStg, 2.10.40 VbaProjectStg.
  Source=Aspose.Slides

第7章 ADALINE神经网络.7z (2.3 MB)

PS: if save to pptx, it will get System.IndexOutOfRangeException:Index was outside the bounds of the array.

@kngstr,
Thank you for reporting on the issue. I’ve reproduced the PptException you described.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-44380

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

I’ve also added this sample presentation to the SLIDESNET-44364 ticket.

The issues you found earlier (filed as SLIDESNET-44364) have been fixed in Aspose.Slides for .NET 24.2 (ZIP, MSI).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.