SAP Knowledge Base Article - Public

1540572 - Error: Could not load file or assembly CrystalDecisions.Windows.Forms

Symptom

  • Application created in VS 2010 using CRVS2010
  • Application and correct runtime for CRVS2010 is deployed
  • Running the application results in the error:

An error occurred creating the form. See Exception.InnerException for details.  The error is: Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

Environment

  • Development environment:

VS 2008

VS 2010

CRVS2010

Cause

  • When adding a CrystalReportViewer 13 to a .NET Windows form the assemblies added to the references are version 10.5.3700.0 instead of 13.0.2000.0

Resolution

  • In the project properties, remove all Crystal Reports references of version 10.5.3700.0
  • Replace the above references with assemblies of version 13.0.2000.0
  • The issue is being tracked under ADAPT01506310

Keywords

runtime deploy crvs2010 crvs 2010 cr4vs2020 cr4vs , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio