KeyNotFoundException Occurs when Resaving PowerPoint Presentation in C#

Hi,

I got The given key '19186' was not present in the dictionary when resaving a slide.
Using SDK: Aspose.Slides for .Net 24.2
Using file:
Remove the last ‘.removeme.7z’, then decompress xxx.7z.001.

总经理工作报告学习导图.7z.001.removeme.7z (4.9 MB)

总经理工作报告学习导图.7z.002.removeme.7z (4.9 MB)

总经理工作报告学习导图.7z.003.removeme.7z (4.9 MB)

总经理工作报告学习导图.7z.004.removeme.7z (4.9 MB)

总经理工作报告学习导图.7z.005.removeme.7z (4.9 MB)

总经理工作报告学习导图.7z.006.removeme.7z (4.9 MB)

总经理工作报告学习导图.7z.007.removeme.7z (4.9 MB)

总经理工作报告学习导图.7z.008.removeme.7z (4.9 MB)

总经理工作报告学习导图.7z.009.removeme.7z (4.9 MB)

总经理工作报告学习导图.7z.010.removeme.7z (4.5 MB)

Details about exception

System.Collections.Generic.KeyNotFoundException
HResult=0x80131577
Message=The given key ‘19186’ was not present in the dictionary.
Source=System.Private.CoreLib
StackTrace:
在 System.ThrowHelper.ThrowKeyNotFoundException[T](T key)
在 System.Collections.Generic.Dictionary`2.get_Item(TKey key)
在 .(Char , Single )
在 e.(e& , Boolean& )
在 .()
在 …ctor(TextFrame ,  , IBaseSlide ,  , e[] )
在 e.e( ,  )
在 e.(e , Single , Single ,  )
在 e.(e , & , RectangleF& ,  )
在 e.(e , ShapeFrame& , RectangleF& ,  )
在 .(IAutoShape ,  ,  ,  )
在 e.(IGroupShape ,  ,  ,  )
在 .(IBaseSlide ,  ,  )
在 .(ISlide )
在 .(e , ISlide ,  )
在 .(Presentation , Stream ,  , IPptxOptions , InterruptionToken )
在 Aspose.Slides.Presentation.(Stream ,  , IPptxOptions )
在 Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
在 Aspose.Slides.Presentation.Save(String fname, SaveFormat format)
在 Program.$(String[] args) 在 C:.NET\ConsoleApp2\ConsoleApp2\Program.cs 中: 第 14 行

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

@kngstr,
Thank you for your patience. I’ve reproduced the error you encountered.

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

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 forwarded it to our developers.

The issues you found earlier (filed as SLIDESNET-44488) have been fixed in Aspose.Slides for .NET 24.5 (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.