I get an Unhandled Exception error from Crystal Reports. I have SAP Crystal Reports runtime engine for .NET Framework 4. For some reason, both 32-bit and 64-bit show up in my Control Panel. Here are the details:
"Unhandled exception has occurred in your application...The type initializer for 'CrystalDecisions.CrystalReports.Engine.CRPE' threw an
exception".
I've tried uninstalling and reinstalling Crystal Reports. I've tried going into the registry and removing everything related to SAP Business Objects. I've also deleted all SAP Business Objects folders from my C drive before reinstalling. Nothing seems to work. Please help.
The full details of the error are as follows:
"See the end of this message for
details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.TypeInitializationException:
The type initializer for 'CrystalDecisions.CrystalReports.Engine.CRPE' threw an
exception. ---> CrystalDecisions.Shared.CrystalReportsException: Could not
load C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET
Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crpe32.dll.
at CrystalDecisions.CrystalReports.Engine.CRPE..cctor() --- End of inner
exception stack trace --- at
CrystalDecisions.CrystalReports.Engine.CRPE.CloseCrpe() at
CrystalDecisions.CrystalReports.Engine.ReportDocument.InternalClose(Boolean
bSetupForNextReport) at
CrystalDecisions.CrystalReports.Engine.ReportDocument.Close() at
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename,
OpenReportMethod openMethod, Int16 parentJob) at
CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName,
OpenReportMethod openMethod, Int16 parentJob) at
CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport() at
CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object
val, Type type) at
CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataSet
dataSet) at DL_QS.frmReport.ChooseReport() at
DL_QS.frmReport.frmReport_Load(Object sender, EventArgs e) at
System.Windows.Forms.Form.XSS_ONLOAD(EventArgs e) at
System.Windows.Forms.Form.OnCreateControl() at
System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at
System.Windows.Forms.Control.CreateControl() at
System.Windows.Forms.Control.WmShowWindow(Message& m) at
System.Windows.Forms.Control.WndProc(Message& m) at
System.Windows.Forms.ScrollableControl.WndProc(Message& m) at
System.Windows.Forms.Form.WmShowWindow(Message& m) at
System.Windows.Forms.Form.WndProc(Message& m) at
System.Windows.Forms.Control.ControlNativeWindow.XSS_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) ************** Loaded Assemblies ************** mscorlib
Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.296 (RTMGDR.030319-2900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
---------------------------------------- System Assembly Version: 4.0.0.0 Win32
Version: 4.0.30319.296 built by: RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
---------------------------------------- Dearborn National Illustration System
Assembly Version: 1.0.4911.34287 Win32 Version: 1.0.4911.34287 CodeBase: file:///C:/Users/dib/AppData/Local/Apps/2.0/BJ1QD8QO.24L/BT2MDVHN.YQR/dear..tion_e967d2da762fe854_0005.0006_47d4be7dfad51fd9/Dearborn
National Illustration System.exe ----------------------------------------
Microsoft.VisualBasic Assembly Version: 10.0.0.0 Win32 Version: 10.0.30319.1
built by: RTMRel CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
---------------------------------------- System.Core Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 built by: RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
---------------------------------------- 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.282 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.Runtime.Remoting Assembly
Version: 4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-0100) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
---------------------------------------- LSPLibrary Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/dib/AppData/Local/Apps/2.0/BJ1QD8QO.24L/BT2MDVHN.YQR/dear..tion_e967d2da762fe854_0005.0006_47d4be7dfad51fd9/LSPLibrary.DLL
---------------------------------------- MVLibrary Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/dib/AppData/Local/Apps/2.0/BJ1QD8QO.24L/BT2MDVHN.YQR/dear..tion_e967d2da762fe854_0005.0006_47d4be7dfad51fd9/MVLibrary.DLL
---------------------------------------- System.Data Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.237 (RTMGDR.030319-2300) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
---------------------------------------- System.Configuration Assembly Version:
4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-0100) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
---------------------------------------- System.Xml Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.233 built by: RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
---------------------------------------- Microsoft.VisualBasic.PowerPacks.Vs
Assembly Version: 10.0.0.0 Win32 Version: 11.0.50727.1 CodeBase: file:///C:/Users/dib/AppData/Local/Apps/2.0/BJ1QD8QO.24L/BT2MDVHN.YQR/dear..tion_e967d2da762fe854_0005.0006_47d4be7dfad51fd9/Microsoft.VisualBasic.PowerPacks.Vs.DLL
---------------------------------------- System.Data.DataSetExtensions Assembly
Version: 4.0.0.0 Win32 Version: 4.0.30319.1 built by: RTMRel CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll
---------------------------------------- System.Numerics Assembly Version:
4.0.0.0 Win32 Version: 4.0.30319.1 built by: RTMRel CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
---------------------------------------- Accessibility Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
---------------------------------------- System.Transactions Assembly Version:
4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-0100) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
---------------------------------------- System.EnterpriseServices Assembly
Version: 4.0.0.0 Win32 Version: 4.0.30319.1 (RTMRel.030319-0100) CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
---------------------------------------- CrystalDecisions.CrystalReports.Engine
Assembly Version: 13.0.2000.0 Win32 Version: 13.0.1.220 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/13.0.2000.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll
---------------------------------------- CrystalDecisions.Shared Assembly
Version: 13.0.2000.0 Win32 Version: 13.0.1.220 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll
----------------------------------------
CrystalDecisions.ReportAppServer.CommLayer Assembly Version: 13.0.2000.0 Win32
Version: 13.0.1.220 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll
----------------------------------------
CrystalDecisions.ReportAppServer.ClientDoc Assembly Version: 13.0.2000.0 Win32
Version: 13.0.1.220 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ClientDoc/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll
----------------------------------------
CrystalDecisions.ReportAppServer.DataDefModel Assembly Version: 13.0.2000.0
Win32 Version: 13.0.1.220 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll
----------------------------------------
CrystalDecisions.ReportAppServer.CubeDefModel Assembly Version: 13.0.2000.0
Win32 Version: 13.0.1.220 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CubeDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CubeDefModel.dll
----------------------------------------
CrystalDecisions.ReportAppServer.ReportDefModel Assembly Version: 13.0.2000.0
Win32 Version: 13.0.1.220 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ReportDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll
----------------------------------------
CrystalDecisions.ReportAppServer.Controllers Assembly Version: 13.0.2000.0 Win32
Version: 13.0.1.220 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.Controllers/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll
----------------------------------------
CrystalDecisions.ReportAppServer.DataSetConversion Assembly Version: 13.0.2000.0
Win32 Version: 13.0.1.220 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll
---------------------------------------- System.Web Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.272 built by: RTMGDR CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
---------------------------------------- log4net Assembly Version: 1.2.10.0
Win32 Version: 1.2.10.0 CodeBase: file:///C:/Windows/assembly/GAC_32/log4net/1.2.10.0__692fbea5521e1304/log4net.dll
---------------------------------------- CrystalDecisions.Windows.Forms Assembly
Version: 13.0.2000.0 Win32 Version: 13.0.1.220 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll
---------------------------------------- CrystalDecisions.ReportSource Assembly
Version: 13.0.2000.0 Win32 Version: 13.0.1.220 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportSource/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportSource.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: 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."