The type initializer for ‘CrystalDecisions.CrystalReports.Engine.ReportDocument’ threw an exception

Here is what worked for me:

If you are installing on a 64-bit machine, make sure the application properties under the Build tab have “Any CPU” as the platform target, and unselect the check box for “Prefer 32-bit” if you have the option. Crystal is very touchy about 32/64 bit assemblies, and makes some pretty counterintuitive assumptions which are very difficult to troubleshoot.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)