0
votes

Project originally started on VS 2005 upgraded in VS 2010. Still targeting .net 2.0. Crystal reports no longer display and give the following error: An error occurred creating the form. See Exception.InnerException for details. The error is: The type initializer for 'CrystalDecisions.ReportSource.ReportSourceFactory' threw an exception. with inner errors: TypeInitializationException: The type initializer for 'CrystalDecisions.ReportSource.ReportSourceFactory' threw an exception. TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception.

I have changed the target platform from AnyCPU to x86 and uninstalled/reinstalled Crystal Reports for Visual Studio, still getting the errors.

Any ideas?

TIA, Phil

1

1 Answers

0
votes

As you told that you shifted your project from VS 05 to VS 10. So In this case have you tried to build the reports again.
It happens sometime just give a try to one of your crystal report in new form and see.