How do I resolve 'Could not load file or assembly 'PDFNet.dll' or one of its dependencies' when deploying SilverDox Publisher on a production machine?

1,482 views
Skip to first unread message

Support

unread,
Dec 3, 2010, 2:30:31 PM12/3/10
to silverdox
Q: I am currently evaluating your product. I am using the PDFNet dll
to convert documents on the sever-side, and send the stream to a
Silverlight application for viewing in the SilverDox control. This is
all working well on local development machines.

Now I am trying to deploy this application to a test server. This is
not a production machine, but it is a server running the latest
version of IIS. It is not available for any outside users but is used
for testing in an environment outside of a development machine. When
attempting to deploy I am seeing a warning in Visual Studio:
Warning 324 WCF client proxy auto generation failed. Could not
load file or assembly 'PDFNet, Version=5.2.0.0, Culture=neutral,
PublicKeyToken=36167be3f67ac39c' or one of its dependencies.

The deploy does finish, however when trying to access the website we
get the following error:

Could not load file or assembly 'PDFNet.dll' or one of its
dependencies. The specified module could not be found.

Any help would be appreciated.

----------------------------
A: 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.com/downloads/en/details.aspx?familyid=A7B7A05E-6DE6-4D3A-
A423-37BF0912DB84

or

Microsoft VC 2010 Redistributable Package (x64):
microsoft.com/downloads/details.aspx?
familyid=BD512D9E-43C8-4655-81BF-9350143D5867

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
Package (x64):

microsoft.com/downloads/en/details.aspx?
FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf

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.

VelvetRevolver

unread,
Dec 8, 2010, 11:28:15 AM12/8/10
to silverdox
Hi,

I did what this post says but still the error continues.

I am using Windows Server 2008 R2 Enterprise (x64). Using PDFNet.dll
5.2 for .net 4 (x64). Installed Microsoft VC 2010 Redistributable
Package (x64). But problem still persists. Please your assistance

Support

unread,
Dec 9, 2010, 12:39:57 PM12/9/10
to silverdox

This error usually means that you are using a 64-bit version of PDFNet
on a 32-bit OS or the other way around.

If your server is 64-bit you either need the 64-bit version of PDFNet
(http://www.pdftron.com/downloads/PDFNet64DotNet4.zip) or you need to
enable x86 compatibility in your application solution (select Project
Solution > Build > Platform Target > x86).
> > 1.1-3.5), there is no need to install any redistributable package.- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages