System.ArgumentException Occurs when Loading PowerPoint Presentation in C#

Hi,

I got System.ArgumentException:“An item with the same key has already been added. Key: 1 Arg_ParamName_Name” when loading a slide.

Using SDK: Aspose.Slides for .Net 24.5.
Tested OSs were Win7 and Win10
.NET target platform is .net 6.0

Using code

Presentation document = new Aspose.Slides.Presentation("2模板工程(.ppt");

Using file:
2模板工程(.7z (4.3 MB)

Exception:

System.ArgumentException
HResult=0x80070057
Message=An item with the same key has already been added. Key: 1 Arg_ParamName_Name
Source=System.Collections
StackTrace:
在 System.Collections.Generic.SortedList2.Add(TKey key, TValue value) 在 ..(List1 , e )
在 .(e )
在 .(e )
在 .( )
在 .( )
在 e.( )
在 .( )
在 .( )
在 .( )
在 .()
在 .( , InterruptionToken )
在 Aspose.Slides.Presentation.( )
在 Aspose.Slides.Presentation.(Stream , Boolean )
在 Aspose.Slides.Presentation.(String , Boolean )
在 Program.<$>g__testLoadAndSave|0_0(String filename) 在 C:.NET\ConsoleApp.Slides\ConsoleApp2\Program.cs 中: 第 11 行
在 Program.$(String[] args) 在 C:.NET\ConsoleApp.Slides\ConsoleApp2\Program.cs 中: 第 36 行

@kngstr,
Thank you for reporting on the issue. I’ve reproduced the problem you described. We apologize for any inconvenience caused.

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-44596

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.

The issues you found earlier (filed as SLIDESNET-44596) have been fixed in Aspose.Slides for .NET 24.7 (ZIP, MSI, NuGet, Cross-platform).
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.