Windows 7 64位操作系统上的PDFLibNet.dll错误 [英] PDFLibNet.dll error on windows 7 64-bit OS

查看:154
本文介绍了Windows 7 64位操作系统上的PDFLibNet.dll错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,



我正在使用PDFLibNet.dll处理PDFViewer,它在Windows XP和Windows 7 32位系统上运行良好。但它在Windows 7 64位上出现了以下错误。



-------

请参阅此消息的结尾有关调用

实时(JIT)调试而非此对话框的详细信息。



******* *******异常文本**************

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=1.0.6.6, 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=1.0.6.6, 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:程序集绑定日志记录已关闭。

要启用程序集绑定失败日志记录,请将注册表值[HKLM \Software\Microsoft\Fusion!EnableLog](DWORD)设置为1.

注意:程序集绑定失败日志记录会导致性能损失。

要关闭此功能,请删除注册表值[HKLM \\ Software\Microsoft \Fusion!EnableLog]。





************** JIT调试**************

启用实时(JIT)调试,这个

应用程序的.config文件或者计算机(machine.config)必须在system.windows.forms部分设置

jitDebugging值。

应用程序也必须使用调试编译

已启用。



例如:




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 system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitdebugging="true" />
</configuration>





启用JIT调试后,任何未处理的异常

将是发送到计算机上注册的JIT调试器

而不是由此对话框处理。



-----





有人急切地建议我这个问题。



提前致谢。



-



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.

--

推荐答案

PDFLibNet.dll不支持64位
PDFLibNet.dll does not support 64 bit


您好b $ b

有64位dll可用,请下载并检查可能是您的问题将解决。



http ://code.google.com/p/pdfviewer-win32/downloads/detail?name = PDFViewerNET40x64.zip& can = 2& q = [


没有人说过,默认情况下,.NET代码编译目标为AnyCPU,这意味着如果.EXE在32位计算机上运行,​​则代码将作为32位进程运行,如果在64位计算机上运行,​​则完全相同的代码将作为64位进程运行。由于您无法在同一进程中混合使用32位和6-4位代码,因此在64位计算机上调用仅32位.DLL会失败,因为您的代码运行为64- bit。



如果修复此问题,您需要使用64位版本的库,或者在将项目属性更改为目标后重新编译项目 x86而不是AnyCPU。在VB.NET中,在解决方案资源管理器的我的项目下,编译选项卡,目标CPU。
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".


这篇关于Windows 7 64位操作系统上的PDFLibNet.dll错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆