Click here to Skip to main content
15,917,971 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I am working on PDFViewer using the PDFLibNet.dll, Its working fine on Windows XP and Windows 7 32-bit system. But its getting the follwing error on Windows 7 64-bit.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileLoadException: Could not load file or assembly 'PDFLibNet, Version=, Culture=neutral, PublicKeyToken=26d87f7d66fb2aee' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'PDFLibNet, Version=, Culture=neutral, PublicKeyToken=26d87f7d66fb2aee'
   at PDFView.PDFViewer.set_FileName(String value)
   at IS.Server.UserManual.InitializeComponent()
   at IS.Server.UserManual..ctor()
   at IS.Server.Index.userManualToolStripMenuItem1_Click(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the section.
The application must also be compiled with debugging

For example:

    < jitdebugging="true" />

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Anybody suggest me for this issue urgently.

Thanks in advance.

Updated 1-Jan-20 13:27pm
Dalek Dave 15-Sep-11 15:40pm    
Edited for Code Blocks.

What noone has said yet is that, by default, .NET code compiles targeting "AnyCPU", which means that if the .EXE is run on a 32-bit machine, the code runs as a 32-bit process and if on a 64-bit machine, the exact same code runs as a 64-bit process. Since you cannot mix 32-bit and 6-4bit code in the same process, your calls to a 32-bit only .DLL will fail on a 64-bit machine, because, well, you're code is running as 64-bit.

If fix this, you either need a 64-bit version of the libries you're using or recompile your project after changing the project properties to target "x86" instead of "AnyCPU". In VB.NET, that's under "My Project" in Solution Explorer, Compile tab, "Target CPU".
Share this answer
Marwa Trust Mutemasango 1-Apr-14 3:48am    
Why did this project die i really love PDFLibNet.dll has anyone recomiled it for .net framework 4.5
Dave Kreskowiak 1-Apr-14 8:10am    
How the hell should I know?

Since this question is about a year old, why are you replying to it??
Marwa Trust Mutemasango 1-Apr-14 9:28am    
Sorry Dave I replied withouth thinking.
Dhanraj.Dj89 18-Jun-14 10:32am    
So now is there any dll available with support of .net framework 4.5
Dave Kreskowiak 18-Jun-14 14:21pm    
First, don't reply to messages in forums that are over a year old.

Next, why don't Google for "PDFLIBNET" and find out for yourself?
PDFLibNet.dll does not support 64 bit
Share this answer
Dalek Dave 15-Sep-11 15:41pm    
And that is the problem :)
There is 64 bit dll available please download and check might be ur problem will solve.[
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900