窗口表单应用程序中的无法处理的异常

窗口表单应用程序中的无法处理的异常

本文介绍了窗口表单应用程序中的无法处理的异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个win表单应用程序。数据库和报表服务器在服务器上。

当我从一台计算机生成报表时,它将生成但是从另一台计算机生成异常未处理的异常





有关调用

实时(JIT)调试的详细信息,请参阅此消息的结尾这个对话框。



I have an win form application.The database and report server is on server.
When I generate report from one computer it will generate but from another computer it raise exception "Unhandled exception"


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

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.ReportViewer.WinForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at GenerateReport.Views.ViewReport.InitializeComponent()
   at GenerateReport.Views.ViewReport..ctor()
   at GenerateReport.Views.DailyReport.button_ViewRepDaily_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(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.Control.ControlNativeWindow.OnMessage(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].







************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
IRISAttendenceSystem
    Assembly Version: 1.0.0.1
    Win32 Version: 1.0.0.1
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/IRISAttendenceSystem.exe
----------------------------------------
Microsoft.Practices.CompositeUI.WinForms
    Assembly Version: 1.0.51205.0
    Win32 Version: 1.0.51205.0
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/Microsoft.Practices.CompositeUI.WinForms.DLL
----------------------------------------
Microsoft.Practices.CompositeUI
    Assembly Version: 1.0.51205.0
    Win32 Version: 1.0.51205.0
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/Microsoft.Practices.CompositeUI.DLL
----------------------------------------
Microsoft.Practices.ObjectBuilder
    Assembly Version: 1.0.51205.0
    Win32 Version: 1.0.51205.0
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/Microsoft.Practices.ObjectBuilder.DLL
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Security
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Security/2.0.0.0__b03f5f7f11d50a3a/System.Security.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
IrisUtility
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/IrisUtility.DLL
----------------------------------------
iDataEACToolkit4000
    Assembly Version: 1.1.3.0
    Win32 Version: 1.1.3.0
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/iDataEACToolkit4000.DLL
----------------------------------------
Interop.IAiCamDeviceControlLib
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/Interop.IAiCamDeviceControlLib.DLL
----------------------------------------
Interop.IAiCamIrisLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/Interop.IAiCamIrisLib.DLL
----------------------------------------
Interop.LGIASECURITYLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/Interop.LGIASECURITYLib.DLL
----------------------------------------
shc9jegz
    Assembly Version: 1.0.51205.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
AccessRights
    Assembly Version: 1.0.0.1
    Win32 Version: 1.0.0.1
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/AccessRights.DLL
----------------------------------------
AutoMail
    Assembly Version: 1.0.0.1
    Win32 Version: 1.0.0.1
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/AutoMail.DLL
----------------------------------------
GenerateReport
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/GenerateReport.DLL
----------------------------------------
OperatorAccess
    Assembly Version: 1.0.0.1
    Win32 Version: 1.0.0.1
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/OperatorAccess.DLL
----------------------------------------
Manage
    Assembly Version: 1.0.0.1
    Win32 Version: 1.0.0.1
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/Manage.DLL
----------------------------------------
Enrollment
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/Enrollment.DLL
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
Interop.LGIACLIENTSOCKETLib
    Assembly Version: 0.8.0.0
    Win32 Version: 0.8.0.0
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/Interop.LGIACLIENTSOCKETLib.DLL
----------------------------------------
Interop.LGIAPACKETLib
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/Interop.LGIAPACKETLib.DLL
----------------------------------------
Interop.IARECORDFRAMELib
    Assembly Version: 2.1.0.0
    Win32 Version: 2.1.0.0
    CodeBase: file:///C:/Program%20Files/IrisAttandenceSystem/IrisAttandenceSystem/Interop.IARECORDFRAMELib.DLL
----------------------------------------
Accessibility
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------







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

推荐答案


这篇关于窗口表单应用程序中的无法处理的异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 22:06