cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrading VS project containing a single CR, report engine runtime error

Former Member
0 Kudos

I've got a VS 2003 project that I've upgraded to VS2017 on my 64-bit Win7 box. I'm not making changes to the CR, only to upgrade the .NET code. This is my first time opening this project on this dev box. The .NET upgrade went fine and the app compiles. I installed CRRuntime_64bit_13_0_20.msi and am getting the following exceptions when I run the project. I've read that this should work with 2017 as long as no changes to the CR are required.

Inner Exception 1: TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.

Inner Exception 2: LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly. Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.

I've verified the registry has full permissions. Not sure where to go from here.

Thanks in advance,

Don

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

SP 21 is the first version that supports VS 2017

Answers (3)

Answers (3)

0 Kudos

Check your project references in the proj file and app.config file, it likely still has references to version 10, GUID's stay the same so if you see them change the version to 13.0.2000.0.

You may also have to manually replace the CR.Windows.Form to use the version 13 one.

Don

Former Member
0 Kudos

Thanks Don for the quick reply. I've installed the 32 bit version as suggested. My next step may have been a mistake, but in my project, I removed the references to the v10.x objects. Then I referenced the v13.0.20.2399 libraries, but now am seeing lots of compile errors with anything Crystal related. I'm using .NET framework 4.0.

0 Kudos

Now run the 32 bit MSI, VS needs both.

Don