Click here to Skip to main content
15,880,543 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everyone,
I am trying to run Crystal Reports 2011 through a server and exporting them as an excel file with Visual Studios 2013. The code works fine on my local computer but whenever I try to run it through the server I get an error "The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception." I have researched online and people say I need a CR Runtime, so I have download the CRRuntime_32bit_13_0_13 and installed it into the server but I still get the same error. I have installed CRforVS_13_0_13 for my local computer and have CRRuntime_64bit_13_0_1 as well and made sure my platform target is at "Any CPU". I am still not sure what the problem is but I know it has to be something needed for the server since it works on my computer and the error only occurs when it is creating a new ReportDocument. If anyone could help that would be great.
[no name] 6-Jul-15 13:37pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900