We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exception message - Index was out of range


Can you tell me what Aspose does at the specified location of code where I get this exception?


Index was out of range. Must be non-negative and less than the size of the collection.

Stack trace:
at System.Collections.ArrayList.get_Item(Int32 index)
at Aspose.Slides.Pptx.Charts.ChartCellCollection.get_Item(Int32 index)
at Aspose.Slides.Pptx.ChartEx.ˆ(‰ƒ saveContext)
at Aspose.Slides.Pptx.ShapesEx.ˆ(‰ƒ saveContext)
at Aspose.Slides.Pptx.GroupShapeEx.ˆ(‰ƒ saveContext)
at Aspose.Slides.Pptx.BaseSlideEx.ˆ(‰ƒ saveContext)
at Aspose.Slides.Pptx.SlideEx.ˆ(‰ƒ saveContext)
at Aspose.Slides.Pptx.PresentationEx.e(‰ƒ context, e‡ outputType)
at Aspose.Slides.Pptx.PresentationEx.Write(Stream stream, e‡ type, PptxOptions options)
at Aspose.Slides.Pptx.PresentationEx.Write(String file, PptxOptions options)

Thanks in advance,

Hi Kostas,

I have observed the stack trace shared by you. All I can tell by looking at the stack trace that the issue lies when saving presentation. Please share the sample code and source presentation with us so that I may perform my investigation to help you further.

Many Thanks,