Reputation: 384
I have been developing Crystal Reports for a while now and the software application is running perfect but got this error again the type initializer for "crystaldecisions.crystalreports.engine.reportdocument" threw an exception. Usually this error is fixed by the following methods:-
but this time even after doing so this error feels like sticking close to me. I even tried a method that wont work that is Enable 32-Bit Application in iis but still no success.
Can anyone point me what have i missed here?
Note:- This PC (x64 operating system) doesn't have Visual Studio 2008 installed and cannot be installed as this is a client's PC (not owned by me).
Upvotes: 1
Views: 18891
Reputation: 139
If CrystalReportViewer control is used, the application must be have target CPU as x86.
Upvotes: 0
Reputation: 1098
This error can be caused by a mismatch in Crystal Reports versions.
I got this error on the server where my ASP.NET MVC application is hosted. Crystal Reports 2008 was installed on my server machine, whereas my development machine was using the latest version of Crystal Reports.
Upvotes: 0