Free Support Forum -

A first chance exception of type 'System.IndexOutOfRangeException' occurred in aspose.pdf.dll

MemoryStream destination = new MemoryStream();

Aspose.Word.Document doc = new Aspose.Word.Document(@"D:\Try.doc");



System.Xml.XmlDocument xmldoc = new System.Xml.XmlDocument();


Aspose.Pdf.Pdf pdfDoc = new Aspose.Pdf.Pdf();

// pdfDoc.IsImagesInXmlDeleteNeeded = true;



After this line it gives error as

A first chance exception of type 'System.IndexOutOfRangeException' occurred in aspose.pdf.dll

Please attach your Try.doc and let us test it. BTW, please make sure you are using the latest version.

Hi, Attached Try.doc. Replay soon.

Thanks in advance

This error comes when Break into debugger is set for Common Language Runtime Exceptions.

If I remove that, No such Error comes

OK. I will test it and reply to you soon.

Sorry for replying to this question so late. In my test, I set the "break into debugger" but still can't get this exception. Can you please provide detailed info? If you ignore the error, the result is correct, right?