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

Free Support Forum - aspose.com

Cloning error "The node to be removed is not a child of this node"


We are using ASPOSE Slide to generate PPT file through c# code. It was working fine till now. The template we use to generate ppt, now if we do any small change even in the template. We get “The node to be removed is not a child of this node” in the code where we clone the slide. Below is the code for the ref.

SlideEx sld = pres.Slides[newSlide];
SlideExCollection slideColl = pres.Slides;
slideColl.InsertClone(newSlide + 1, sld); //(We get error on this line.)

Below is the information on version we are using.

Run time Version: v4.0.30319

Please provide us solution to resolve the issue and why it’s happening now only, where it was working fine previously.

Thank You.

Hi Hiren Kumar,

I have observed the issue shared by you and suggest you to please visit this documentation link for latest code samples to perform slide cloning. Please try using Aspose.Slides for .NET 16.3.0 on your end to serve the purpose. Please share, if I may help you further in this regard.

Many Thanks,