Free Support Forum -

Opening presentaion - 'System.IndexOutOfRangeException'

Hi there,

I'm having problems opening an existing presentation. I have set the license and am using the following code to try and open an existing .ppt file.

if (File.Exists(fileName))

Presentation pres = new Aspose.Slides.Presentation(fileName);


The code falls over at line - Presentation pres = new Aspose.Slides.Presentation(fileName),.

the debugger shows the following - "A first chance exception of type 'System.IndexOutOfRangeException' occurred in Aspose.Slides.dll"

I'm using As pose.Slides version 4.0.01 with Aspose.Total License.

Can you please advise were I'm going wrong as I'm following the code samples provided in the documentation here

Many thanks,


Hi Kathy,

It should work. Can you please provide the ppt file? If you are using a pptx file, include namespace Aspose.Slides.Pptx and use the following code instead.

PresentationEx pres=new PresentationEx(filename);

ppt file is attached.



Hi Kathy,

Actually, it was a pptx file and its extension was changed to ppt. Just open it in MS Power Point 2007 and save it as ppt and then try to open it with the same code. The corrected ppt is attached that you can use.

That resolved the issue.

Many thanks for your help.