Error message when opening a PDF document

We are currently looking at your product since we wish to work around a
lot with pdf-files on a server. Wich apperently adobe does not

So I've been tipsed about that pdfnet is a very good product and
decided to test it.

Now the problem I get is that I simply can't open the file:

PDFDoc doc = new PDFDoc(strFile);
// strFile = path to the .pdf ... pdf is included in the name.

and I am using following:

using pdftron;
using pdftron.Common;
using pdftron.PDF;
using pdftron.SDF;

the error returned is as following:

Attemted to read or write protected memory.

I am using VS 2005, dotNET 2.0
Would really appriciate help. Concerning what may cause this problem.

You should be able to use PDFNet to open any valid PDF document.

A) Did you initialize PDFNet using PDFNet.Initalize()?
B) Did you call pdfdoc.InitSecurityHandler() after creating the
C) Is Acrobat Pro asking you to save the opened document? If yes, this
means that the document is corrupt and that you need to 'rebuild' the
xref table. In PDFNet, you could use XRefRebuilder to fix PDF documents
with broken offset tables.

PDFTron Support