Free Support Forum - aspose.com

Presentation Save Fails and getting the Error while Performing Adding the custom properties with save format as ppt

I am using a aspose Library with license to write the custom properties in ppt extension OLE files.

I am getting the errors in the scenario of particular file:

  • Adding Custom Property and Saving : No problem
  • Removing Custom Property from above custom property set file and saving: No Problem .
  • Again Adding the custom into above deleted custom property file : Getting following Exception in save function and File Size = Zero.

Kindly Support.

[System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Aspose.Slides. .( ? )
at Aspose.Slides. .( ? )
at Aspose.Slides. .( ? )
at Aspose.Slides. .( ? )
at Aspose.Slides. ? .( ? )
at Aspose.Slides. ? . ()
at Aspose.Slides. ? .()
at Aspose.Slides. ? .(Stream , ISaveOptions )
at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
at Aspose.Slides.Presentation.Save(String fname, SaveFormat format)

@pg3223,

Can you please first try using latest Aspose.Slides for .NET 20.7 on your end. In case there is still an issue then please share the working sample code along with source presentation reproducing the issue.