How do I upgrade my Crystal Report libraries in a .NET 3.5 project to CR XI R2?

Posted by Stuart B on Stack Overflow See other posts from Stack Overflow or by Stuart B
Published on 2010-03-01T23:36:55Z Indexed on 2010/03/11 18:29 UTC
Read the original article Hit count: 483

Our project currently uses Crystal Reports for Visual Studio 2008. We need to upgrade to XI R2, but I'm having problems doing so. Here are the steps I followed:

  1. Install Crystal Reports XI R2.
  2. Collect updated assemblies from the GAC. I did this because I couldn't find version XI libraries in the "Add References..." dialog. I verified that these assemblies were of version 11.5.*. The libraries I gathered were:
    • CrystalDecisions.CrystalReports.Engine
    • CrystalDecisions.Enterprise.Framework
    • CrystalDecisions.Enterprise.InfoStore
    • CrystalDecisions.ReportSource
    • CrystalDecisions.Shared
    • CrystalDecisions.Windows.Forms
  3. Replace all references in my projects to version 10.5 Crystal libraries with references to the newer assemblies.

Everything builds fine, but when I try to instantiate a ReportDocument, I get this error:

The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.

Is there anything I'm missing? Will this just not work?

© Stack Overflow or respective owner

Related posts about crystal-reports

Related posts about crystal-reports-xi