The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception
I am getting error " The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception " while loading crystal reports in windows forms application . it is working fine in DEV environment and on some client machines no issues loading reports. But on some machines it is trowing error whole loading crystal report and then application crashes. This is happening with fresh installation on client machines(both 32-bit/64-bit) and application that is already running and which used to load crystal reports fine.Please kindly help.
I am using visual studio 2002 and Crystal reports 10
Is it for 32 bit/64 bit/Any CPU?
This link from MSDN indicates to target x86 (32-bit)
Crystal is a 32-bit application so you should compile for that.