Q: I have added the PDFNet.dll to the Bin folder of my .Net ASP
project. Included it as a resource and it runs great in dev. I
deployed the website to production and get the following error. The
DLL is in the Bin folder of the website. Is there something else I
need to do?
[FileNotFoundException: Could not load file or assembly 'PDFNet.dll'
or one of its dependencies. The specified module could not be found.]
A: What is the variant of PDFNet that you are using (i.e. the name of
the ZIP file you downloaded from pdftron website)?
In case of PDFNet for .NET 4.0 you need VC 2010 redistributable on
your system (MSVCP100.DLL and MSVCR100.DLL). This is a standard
component of Visual Studio. In case your target machine does not
include this redistributable you can download it from here:
Microsoft VC 2010 Redistributable Package (x86):
Microsoft VC 2010 Redistributable Package (x64):
You can either install the redistributable on the target machine or
you can copy the above mentioned DLL in the same folder as PDFNet.
In case you are using VS2008 and 64-bit version of PDFNet 1.1-3.5
(i.e. PDFNet64.zip) you would need Microsoft VC 2008 Redistributable
In case you are using PDFNet.zip (i.e. 32-bit version of PDFNet for
1.1-3.5), there is no need to install any redistributable package.