Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Create an instance of Quick PDF Library problem
  FAQ FAQ  Forum Search   Register Register  Login Login

Create an instance of Quick PDF Library problem

 Post Reply Post Reply
Author
Message
quickpdf_learner View Drop Down
Beginner
Beginner


Joined: 15 Oct 10
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote quickpdf_learner Quote  Post ReplyReply Direct Link To This Post Topic: Create an instance of Quick PDF Library problem
    Posted: 15 Oct 10 at 6:44PM

I was trying to create a quickpdf application with c# for my web application by using:

string libraryPath = string.Format("{0}{1}", "c:\\inetpub\\devapp\\", "QuickPDFDLL0721.dll");

QuickPDFDLL0721.PDFLibrary qp = new QuickPDFDLL0721.PDFLibrary(libraryPath);
 
And got the following error:
"value cannot be null. parameter name: ptr".
 
I guess it's because of incorrect libray path.
 
Please advise.
Back to Top
quickpdf_learner View Drop Down
Beginner
Beginner


Joined: 15 Oct 10
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote quickpdf_learner Quote  Post ReplyReply Direct Link To This Post Posted: 19 Oct 10 at 6:49PM
It can be loaded to local while doesn't work for web.
 
The error log is
 
[NullReferenceException: Object reference not set to an instance of an object.]
   db..ctor() +39
   elog.elogger(String errormsg) +82
   _Default.Page_Load(Object sender, EventArgs e) +1340
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +41
   System.Web.UI.Control.OnLoad(EventArgs e) +131
   System.Web.UI.Control.LoadRecursive() +65
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427
 


Edited by quickpdf_learner - 19 Oct 10 at 7:32PM
Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post Posted: 20 Oct 10 at 9:24AM
If this is going on a server then you should probably be using the Server.MapPath method instead of hard coding the path as you're probably running into permissions issues. This error isn't caused by the library, it's caused by your web application not being able to find (due to permissions I imagine) the file that you're referencing.
Back to Top
quickpdf_learner View Drop Down
Beginner
Beginner


Joined: 15 Oct 10
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote quickpdf_learner Quote  Post ReplyReply Direct Link To This Post Posted: 20 Oct 10 at 1:45PM
I've tried
PDFLibrary qp = new PDFLibrary(Server.MapPath("~\\QuickPDFDLL0721.dll")) or
PDFLibrary qp = new PDFLibrary(Server.MapPath("QuickPDFDLL0721.dll"))
which didn't work either.
 
As to permissions issues, what else do I need to do?
 
Another thing is that, I cannot add the dll as a reference to the project. Error message shows "No typed libraries were fuond in the component". Has anyone else got the same?
 
Thanks for your reply.
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store