I ran into this error using ClickOne to deploy a .NET 2.0 app.
CrystalReports for .NET 2.0 is included in the delployment.
The error indicates that an incorrect version of CrystalReports. Engine DLL
is added to the client GAC.
My question is how to obtain a correct redistributable package of R10 so
that I can automate the delpoyment.
Thanks
Bill
---------
************** Exception Text **************
System.TypeInit ializationExcep tion: The type initializer for
'CrystalDecisio ns.CrystalRepor ts.Engine.Repor tDocument' threw an
exception. ---> System.Runtime. InteropServices .COMException (0x80040154):
Retrieving the COM class factory for component with CLSID
{CF76A644-314B-404D-8D45-F08B51FF990B} failed due to the following error:
80040154.
at CrystalDecision s.CrystalReport s.Engine.Report Document..cctor ()
--- End of inner exception stack trace ---
at CrystalDecision s.CrystalReport s.Engine.Report Document..ctor( )
at GSIC_2005.frmCR Display.doNewRe ports(String rptName, String rptSelect,
String rptParam0, String rptTitle, Int32 prMode, String printName, Int32
printCopies)
at GSIC_2005.frmGS ICStationPerfor mance.btnPrint_ Click(Object sender,
EventArgs e)
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
GSIC_2005
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase:
file:///C:/Documents%20and %20Settings/jamesm/Local%20Setting s/Apps/2.0/YB1QOY57.0TX/R5QC3ZV2.BO4/gsic..tion_e2c7 92029ba34e9b_00 01.0000_d1ba16f adb9a8ad9/GSIC_2005.exe
----------------------------------------
Microsoft.Visua lBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Visua lBasic/8.0.0.0__b03f5f 7f11d50a3a/Microsoft.Visua lBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c 561934e089/System.dll
----------------------------------------
System.Windows. Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows. Forms/2.0.0.0__b77a5c 561934e089/System.Windows. Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f 7f11d50a3a/System.Drawing. dll
----------------------------------------
System.Runtime. Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime. Remoting/2.0.0.0__b77a5c 561934e089/System.Runtime. Remoting.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c 561934e089/System.Data.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c 561934e089/System.Xml.dll
----------------------------------------
System.Configur ation
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configur ation/2.0.0.0__b03f5f 7f11d50a3a/System.Configur ation.dll
----------------------------------------
System.Transact ions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.Transact ions/2.0.0.0__b77a5c 561934e089/System.Transact ions.dll
----------------------------------------
System.Enterpri seServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.Enterpri seServices/2.0.0.0__b03f5f 7f11d50a3a/System.Enterpri seServices.dll
----------------------------------------
CrystalDecision s.CrystalReport s.Engine
Assembly Version: 10.0.3300.0
Win32 Version: 10.0.9500.20
CodeBase:
file:///C:/Documents%20and %20Settings/jamesm/Local%20Setting s/Apps/2.0/YB1QOY57.0TX/R5QC3ZV2.BO4/gsic..tion_e2c7 92029ba34e9b_00 01.0000_d1ba16f adb9a8ad9/CrystalDecision s.CrystalReport s.Engine.DLL
----------------------------------------
CrystalDecision s.Shared
Assembly Version: 10.0.3300.0
Win32 Version: 10.0.9500.28
CodeBase:
file:///C:/Documents%20and %20Settings/jamesm/Local%20Setting s/Apps/2.0/YB1QOY57.0TX/R5QC3ZV2.BO4/gsic..tion_e2c7 92029ba34e9b_00 01.0000_d1ba16f adb9a8ad9/CrystalDecision s.Shared.DLL
----------------------------------------
CrystalDecision s.Windows.Forms
Assembly Version: 10.0.3300.0
Win32 Version: 10.0.9500.23
CodeBase:
file:///C:/Documents%20and %20Settings/jamesm/Local%20Setting s/Apps/2.0/YB1QOY57.0TX/R5QC3ZV2.BO4/gsic..tion_e2c7 92029ba34e9b_00 01.0000_d1ba16f adb9a8ad9/CrystalDecision s.Windows.Forms .DLL
----------------------------------------
CrystalDecision s.ReportSource
Assembly Version: 10.0.3300.0
Win32 Version: 10.0.9500.0
CodeBase:
file:///C:/Documents%20and %20Settings/jamesm/Local%20Setting s/Apps/2.0/YB1QOY57.0TX/R5QC3ZV2.BO4/gsic..tion_e2c7 92029ba34e9b_00 01.0000_d1ba16f adb9a8ad9/CrystalDecision s.ReportSource. DLL
----------------------------------------
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f 7f11d50a3a/System.Web.dll
----------------------------------------
CrystalDecision s.ReportAppServ er.CommLayer
Assembly Version: 10.0.3300.0
Win32 Version: 10.0.9500.19
CodeBase:
file:///C:/Documents%20and %20Settings/jamesm/Local%20Setting s/Apps/2.0/YB1QOY57.0TX/R5QC3ZV2.BO4/gsic..tion_e2c7 92029ba34e9b_00 01.0000_d1ba16f adb9a8ad9/CrystalDecision s.ReportAppServ er.CommLayer.DL L
----------------------------------------
************** 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:
<configuratio n>
<system.windows .forms jitDebugging="t rue" />
</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.