Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hi I have some kind of problem with Crystal Reports. Whenever I try to initialize a ReportDocument or fill ReportViewer I got following exception:
System.TypeInitializationException: {"The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception."}

For instance, this line of code produces such exception:
C#
CrystalDecisions.CrystalReports.Engine.ReportDocument repDoc = new CrystalDecisions.CrystalReports.Engine.ReportDocument();


I've reinstalled Crystal Reports but with no results.
It is strange that it works fine on every other computer we have around :( .

What else can I do?
Posted

1 solution

I also faced same issue and solved by installing CRRedist2005_x86.msi[^]
 
Share this answer
 
v2
Comments
Oshtri Deka 28-Jun-12 6:52am    
As I wrote before, I've done that and it doesn't help.

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