Error with Crystal Reports 2013 and Visual Studio 2012

Hello Experts,

I'm trying to run a Crystal Report on Visual Studio 2012, my code is the following:

        m_da = New SqlDataAdapter("Select * from YearBudget", g_cn)
        Dim myReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
        ViewerForm.CrystalReportViewer1.ReportSource = myReport

I do not receive any error on design, the problem is when I'm running the application, I got the following error:

Could not load file or assembly 'file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.

The subfolder "....\dotnet1" does not exist on my PC, only exists on C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86. I'm afraid it is a 32/64 plataform problem, but I don't know how to fix it.

I'm running Visual Studio 2012 on a Windows 8 machine (64 bit).

Any help will be welcome.
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.

Are you using the version of Crystal that can be downloaded for VS2012?

ajallathAuthor Commented:
Yes, I download the version from the following link:

And I did not have any issue during the installation, even it works fine on the VS IDE, my problem is when I execute the application.

What did you install when installed the application?
You need to use the Crystal MSI

ajallathAuthor Commented:
Hello, finally I found the solution, it has to be edited the app.config file and add the followin code:

 <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>

You can see the detailed solution on:

Thnaks anyway for your help.

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
ajallathAuthor Commented:
Because it was exactly the solution to the problem, and the solution was easy to implement
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.