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

Free Support Forum - aspose.com

Aspose.Pdf Exception

When we try to generate PDF file the following exception occurs. And the exception happens inconsistently so it’s hard to reproduce in sample as well as the error message is not readable as well. Current version of Aspose.Pdf is 4.2.1.0


Here is the error message.

Exception in GeneratePDFs. Exception in GenerateContractPDFQuotation. Object reference not set to an instance of an object.System.NullReferenceException: Object reference not set to an instance of an object.
at x3f91538e8c0de749.x1e934fbd7f82b78c.x66a2225126ba1e80(Table x1ec770899c98a268, Table xf437737864df3a48)
at x3f91538e8c0de749.x1e934fbd7f82b78c.x54c647965e5f6928(Pdf x6beba47238e0ade6, Section x4c742376f4cbaf27, Table x1ec770899c98a268, Single xb6c9438c24bd11c8)
at x3f91538e8c0de749.x1e934fbd7f82b78c.x655c25ff3d87c202(Pdf x6beba47238e0ade6, Section x4c742376f4cbaf27, HeaderFooter x105be60320c854bc, Table x1ec770899c98a268, x33eef31791ddfc27 xb4012f98512a2f3d, x33eef31791ddfc27 x1af02198e7b35f4e, xbfecfdaff4b493fe x96b3b0aca69853de, Boolean x70e701cee22724e3)
at x3f91538e8c0de749.x2288a8cd3edf6dd5.x5b7cc3ed4565d299(Pdf x6beba47238e0ade6, Section x4c742376f4cbaf27, HeaderFooter x105be60320c854bc, Table x1ec770899c98a268, x33eef31791ddfc27 xb4012f98512a2f3d, xbfecfdaff4b493fe x96b3b0aca69853de, Boolean x70e701cee22724e3)
at x3f91538e8c0de749.x7576dadd7c449efa.x8810991188d773db(Pdf x6beba47238e0ade6, Section xb32f8dd719a105db, x33eef31791ddfc27 xb4012f98512a2f3d)
at x3f91538e8c0de749.x6a7cd842e95518d7.xc5e548c04b18e6e2(Pdf x6beba47238e0ade6)
at x3f91538e8c0de749.xaa36f84dba9d652f.x5ec1518f85fc1bbf(xb912e9429339cb81 x80010f902a1f736e, Pdf x6beba47238e0ade6)
at Aspose.Pdf.Pdf.Save(String pdfFile)

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for using our products.

The “Object reference not set to an instance of an object” is a very generic issue and by the time we are not sure about the particular reasons that are causing this problem, we might not be able to share appropriate information regarding its resolution.

Please share some details regarding your project/working environment and requirement (how you are generating the PDF document). We are sorry for your inconvenience.

I was able to reproduce the issue with the PDF generation.


Please use the attached application to reproduce the problem on your side.

When generating the PDF for
Solution : 193260 fails
Solution : 214459 works fine

Let me know if this helps reproducing the problem.

I have used VS2008 with .NET 3.5 framework.

Hi,

Thanks for sharing the code snippet. We are looking into the details of this problem and will get back to you with the status of correction, shortly. Sorry for the delay and inconvenience.