Link to home
Start Free TrialLog in
Avatar of dorothy60
dorothy60Flag for United States of America

asked on

Crystal Reports for Visual Studio

Hello,

I recently got VS 2012, and downloaded CRforVS_13_0_5.exe, which is what SAP says is the Crystal Reports that will work with VS 2012. I uninstalled CR For VS 2010 and installed CR For VS. CR shows up in the toolbox in VS 2012, and I can put the viewer on a form and design a report. When I test the application  (a Windows Form Application, in VB), I get an error:

"The type initializer for 'CrystalDecisions.ReportSource.ReportSourceFactory' threw an exception."

The application I am getting this in has only one form that just displays the report. The report just has one text field that says "Hello, Dotty". I wrote it to test CR. My target Framework is NET 4.0

The application that I am writing to sell (a Windows Form Application) was written in VS 2010, and has several reports. It runs and the reports work great when I run it in VS 2012. Again, the target Framework is NET 4.0

Why is CR throwing that exception in a new application?


Thanks,

Dotty
Avatar of Mike McCracken
Mike McCracken

DO you have the new runtimes installed?

Did you update the alication to use the new version including the new libraries?

mlmcc
Avatar of dorothy60

ASKER

Hi, mlmcc,

All that I have for runtimes is the .msi file. I thought that was just for use when deploying my program. Should I run it?

Do you mean under references? If so, yes, the CR test solution does have the updated libraries.


Thanks,


Dotty
ASKER CERTIFIED SOLUTION
Avatar of dorothy60
dorothy60
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This solved the problem.