Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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>


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.
Posted
Updated 2-Oct-13 22:54pm
v2

1 solution

I think you missed to install the MS report viewer. Get it from here[^] but check the version
 
Share this answer
 
Comments
Member 7909353 3-Oct-13 5:11am    
should report viewer on client computer?
thatraja 3-Oct-13 5:14am    
No, but the application says that it needs the report viewer assembly.
Member 7909353 3-Oct-13 5:20am    
I install reportviwer as you suggest but it is not working
thatraja 3-Oct-13 5:23am    
Did you include the report viewer assembly in the application, because you application has reports which needs the assembly.
Member 7909353 3-Oct-13 6:03am    
Microsoft.ReportViewer.Commons
Microsoft.ReportViewer.WinForms

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