System.NullReferenceException

System.NullReferenceException

Forum member · Jun 4, 2007
I got the merge PDF work very well at localhost. However when I have put it in live I will receive a System.NullReferenceException error. Any body have ideas. Currentyly I am useing test version. And I am sure administer has give me the right. Thank you so much.

Re: System.NullReferenceException

Forum member · Jun 4, 2007
by the way, our server is windows bita version. The error happens at here PdfDocument _pdfDoc = new PdfDocument(MapPath("~/PDF/Invoice.pdf")); I have traced the mappath and find the file dose exist. the whole error message is ---- Invoice file name ---- D:\Inetpub\vhosts\bitaa.com\httpdocs\Services\ABS_Client\PDF\Invoice.pdf----- System.NullReferenceException: Object reference not set to an instance of an object. at zz93.jl.a(d3 A_0) at zz93.e..ctor(d3 A_0, jl A_1) at ceTe.DynamicPDF.Merger.PdfDocument.g() at ceTe.DynamicPDF.Merger.PdfDocument..ctor(h7 A_0, String A_1) at ceTe.DynamicPDF.Merger.PdfDocument..ctor(String filePath) at Controls_InvoicePDFl.CreateInvoice()

Re: System.NullReferenceException

Support · Jun 4, 2007
Hello, Are you trying to run the examples downloaded with the product download? The Invoice.pdf file is downloaded with the examples downloaded. Can you please let us know what example are you trying to run? Thanks, ceTe Software Support Team

Re: System.NullReferenceException

Forum member · Jun 4, 2007
the dll I have downloaded is ceTe.DynamicPDF.11.dll 4.03.11 the template invoice pdf for merge was made by ourselves. I could set all data in the invoice pdf file, save it, view it, email it, even delete the file I have saved at local host testing. However,when we move all same stuff to web server, it crashed simply do this PdfDocument _pdfDoc = new PdfDocument(MapPath("~/PDF/Invoice.pdf"));

Re: System.NullReferenceException

Support · Jun 4, 2007
Hello, So the code works fine on your test machine? If yes, can you send us over the PDF document you are merging and we can take a look at it on our end? Are you trying to fill the form fields on the PDF document? Thanks, ceTe Software Support Team

Re: System.NullReferenceException

Forum member · Jun 4, 2007
sure. I will sent the pdf to you. May I have the email? It is so odd.

Re: System.NullReferenceException

Forum member · Jun 4, 2007
I sent an email to support@cete.com with title RE: [ceTe Software Forums]- System.NullReferenceException (source code and pdf template) Thank you for your help. haina