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
dorothy60Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
DO you have the new runtimes installed?

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

mlmcc
0
dorothy60Author Commented:
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
0
dorothy60Author Commented:
Hello,

The problem was the Target CPU under Project Properties in VS was set to 'Any CPU', so VS was trying to use the 64 bit version of CR, which I did not install. I changed it to 'x86', and it works.

Dotty
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dorothy60Author Commented:
This solved the problem.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.