Cast error in PresentationEx.Write

I am getting this error whenever the PresentationEx.Write(stream) is executed:

Unable to cast object of type ‘Aspose.Slides.Pptx.NotesSlideEx’ to type ‘Aspose.Slides.Pptx.SlideEx’

How can we fix this?


This message was posted using Page2Forum from Write Method - Aspose.Slides for .NET

Hi Rommel,

It would be great, If you can share your presentation file for investigation purposes.

Hi Rommel,


Thanks for your interest in Aspose.Slides.

I have tried to understand the issue shared by you. However, in order to further investigate and to help you out further, I request you to kindly share the source presentation along with the project code used.

Many Thanks,

Thank you for the prompt response.


We have isolated the source of the problem. The problem is caused by a few slides in our ppt file. We fixed the problem by replacing these slides.

Thanks anyways.

Hi Rommel,


That is really nice that you have been able to figure out the issue on your end. Please share if I may help you further in future.

Many Thanks,