Some test text!

Load time exceptions on .NET/WPF

Contents

Resolving FileLoadException due to missing VC redistributable
"Could not load file or assembly 'PDFNet.dll'" when using PDFNet for .NET 4.x
Resolving 'FileNotFoundException: Could not load file or assembly 'PDFNet.dll' or one of its dependencies'

linkResolving FileLoadException due to missing VC redistributable

With newer versions of Visual Studio, Microsoft no longer allows statically linking to the CRT for .NET components. To get everything working, installing the VC++ runtime is not necessary, instead required DLLs (e.g. MSVCP100.DLL & MSVCR100.DLL) can simply be copied into the same folder where PDFNet.DLL is located. There is no dll registration needed. A utility called Dependency Walker can help you to identify which two DLLs are required.

link"Could not load file or assembly 'PDFNet.dll'" when using PDFNet for .NET 4.x

The PDFNet x64 library is for targeting frameworks 2.0 - 3.5. Since your building .net 4 or 4.5, you should use PDFNet for .Net 4. If there is some reason to use the .Net 2 assembly, the following article might help. http://stackoverflow.com/questions/3179028/mixed-mode-assembly-in-net-4

linkResolving 'FileNotFoundException: Could not load file or assembly 'PDFNet.dll' or one of its dependencies' [64-bit and .NET 4 specific]

If you are using a direct reference to PDFNet.dll, please ensure that your reference is pointing to the correct version (32-bit vs 64-bit) of the PDFNet dll. Also check and ensure that 'copylocal' is set to true for the assembly reference in the project.

Get the answers you need: Support

Contents

Resolving FileLoadException due to missing VC redistributable
"Could not load file or assembly 'PDFNet.dll'" when using PDFNet for .NET 4.x
Resolving 'FileNotFoundException: Could not load file or assembly 'PDFNet.dll' or one of its dependencies'