Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with CR for VS2010
Message
 
To
02/01/2012 18:20:22
General information
Forum:
ASP.NET
Category:
Reporting
Miscellaneous
Thread ID:
01532052
Message ID:
01532459
Views:
32
>I'm trying run my first crystal report with VS2010.
>
>It designs OK, but when I try to create the report object:
>
>MyRpt myRpt = new MyRpt();
>I get:
>The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.
>I'm running on a Win 7 machine and the project is set to build on any cpu.
>
>I searched for a few hours and the only clue was to reinstall CR for VS2010.
>I did that with no results.
>Any clues?
>
>Clueless in Hamilton

You need to add lines to your app.config. Check http://stackoverflow.com/questions/5015294/how-can-i-use-crystal-report-under-net4-0
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform