其他计算机中的C#应用​​程序错误 [英] C# Application error in others computers

查看:205
本文介绍了其他计算机中的C#应用​​程序错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在自己开发的计算机上运行应用程序时,它可以工作.糟糕,当我在另一台计算机上运行该应用程序时,出现以下错误.

When I run my application in computer which I've developed, it works. Buw I'm getting the following error when I run the app in other computer.

** * ** 例外文本 ** * **** System.IO.FileNotFoundException:无法加载文件或程序集 'itextsharp,版本= 5.4.0.0,文化=中性, PublicKeyToken = 8354ae6d2174ddca"或其依赖项之一.雌性 注意事项.文件名:'itextsharp, 版本= 5.4.0.0,文化=中性,PublicKeyToken = 8354ae6d2174ddca'
在LoadImagesFromFolder.cc2215415.button3_Click_1(对象发送方, EventArgs e)在 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)在 System.Windows.Forms.Control.WmMouseUp(Message& m,鼠标按钮 按钮,则Int32点击) System.Windows.Forms.Control.WndProc(Message&m)位于 System.Windows.Forms.ButtonBase.WndProc(Message&m)位于 System.Windows.Forms.Button.WndProc(Message&m)位于 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg, IntPtr wparam,IntPtr lparam)

***** Exception Text ******* System.IO.FileNotFoundException: Could not load file or assembly 'itextsharp, Version=5.4.0.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' or one of its dependencies. O sistema não pode encontrar o arquivo especificado. File name: 'itextsharp, Version=5.4.0.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca'
at LoadImagesFromFolder.cc2215415.button3_Click_1(Object sender, EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.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].

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].

** * ** 加载的装配体 ** * **** mscorlib 程序集版本:4.0.0.0 Win32版本:4.0.30319.296(RTMGDR.030319-2900)

***** Loaded Assemblies ******* mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.296 (RTMGDR.030319-2900)

LoadImagesFromFolder 程序集版本:1.0.0.0 Win32版本:1.0.0.0 代码库:file:///C:/Users/Felipe/Desktop/LoadImagesFromFolder.exe ---------------------------------------- System.Windows.Forms 程序集版本:4.0.0.0 Win32版本:4.0.30319.1002建立于:RTMGDR 代码库:file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing 程序集版本:4.0.0.0 Win32版本:4.0.30319.1001建立于:RTMGDR 代码库:file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll - - - - - - - - - - - - - - - - - - - - 系统 程序集版本:4.0.0.0 Win32版本:4.0.30319.1001内置:RTMGDR

LoadImagesFromFolder Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/Felipe/Desktop/LoadImagesFromFolder.exe ---------------------------------------- System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.1002 built by: RTMGDR CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.1001 built by: RTMGDR CodeBase: file:///C:/windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.1001 built by: RTMGDR

** * ** JIT调试 ** * **** 要启用即时(JIT)调试,请为此应用或计算机使用.config文件 (machine.config)必须在 system.windows.forms部分.该应用程序也必须编译 启用调试.

***** 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.

例如:

启用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.

推荐答案

您还需要将itextsharp.dll也复制到新计算机上

you need to copy itextsharp.dll also to the new computer

这篇关于其他计算机中的C#应用​​程序错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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