Skip to Content
0
Former Member
Jul 21, 2011 at 06:41 AM

Type initializer Error

137 Views

I experience the following error deploying our application to a server.

"The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception"

Development Machine:

Windows 7 x64

Visual Studio 2010

Server (Deployed too):

Windows Server 2008 x64

Application

Basic winforms application

Notes

Set Target CPU in compile options to x86 in VS

Installed CR runtime on the server : CRforVS_redist_install_64bit_13_0_1

References:

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.CrystalReports.Engine.dll

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.ReportSource.dll

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.Shared.dll

C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.Windows.Forms.dll

Any help much appreciated. Thank you.

Edited by: Reafidy on Jul 21, 2011 8:42 AM