1544532 - Error: Could not load file or assembly 'CrystalDecicions.Windows.Forms', version=10.5.3700.0

SAP Knowledge Base Article - Public

1544532 - Error: Could not load file or assembly 'CrystalDecicions.Windows.Forms', version=10.5.3700.0

Symptom

  • Compiling a VS2010 Windows application using CRVS2010
  • On compile the following error is produced;

exe error2.jpg

Environment

  • VS2008
  • VS2010
  • CRVS2010

Reproducing the Issue

  • Install VS2008
  • Install VS2010
  • Install CRVS2010
  • Create a Windows application in VS2010, using CRVS2010
  • In the Properties for the project and change the target framework .NET Framework 4. (not the .NET Framework client profile)
  • From the VS .NET 2010 Toolbox, then drag and drop the CrystalReportViewer on the Winform
  • All the CrystalDecisions.* references in the Solution Explorer will be version 10.5.3700.0 instead of 13.0.2000.0

Cause

  • This is a Microsoft (MS) issue in the multi-targeting infrastructure
  • MS fix ETA - Unknown

Resolution

  • Work-around; Manually remove CR references of version 10.5.3700.0 from the project
  • The following references must be removed:

CrystalDecisions.Windows
CrystalDecisions.Shared
CrystalDecisions.ReportSource
CrystalDecisions.CrystalReports.Engine

  •  Delete the CR viewer off the form
  • Manually re-add the following assemblies of version 13.0.2000.0:

CrystalDecisions.Windows
CrystalDecisions.Shared
CrystalDecisions.ReportSource
CrystalDecisions.CrystalReports.Engine

  • Re-add the CR viewer defined by the CrystalDecisions.Windows assembly of version 13.0.2000.0

Keywords

KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio