Skip to Content
Former Member
Jul 06, 2015 at 07:38 PM

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



I am using Visual Studios 2013 to export crystal reports (Crystal Reports 2011) through a server. On my local computer my code works fine but when I run it through the server I get an error, "The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception", when it tries to run a new ReportDocument(). I have done research online and have been told I need to download a CR Runtime, so I install CRRuntime_32bit_13_0_13 on to the server but my code still doesn't work. I have installed on my computer CrforVS_13_0_13 but not on to the server since it doesn't have visual studios. I have also made sure that my code goes to "Any CPU". If anyone could help me with this that would be amazing.