SAP Knowledge Base Article - Public

1631763 - Compiler Error Message: CS0433 when compiling a VS2010 application

Symptom

  • Trying to compile a VS2010 web application that uses the Crystal Reports SDK for .NET
  • Complete error description:

Compiler Error Message: CS0433: The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\12.0.2000.0__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\13.0.2000.0__692fbea5521e1304\CrystalDecisions.Web.dll'

Environment

  • VS2010
  • Crystal Reports for Visual Studio 2010

Cause

  • Both version 13.0.2000.0 and version 12.0.2000.0 Crystal Reports assemblies are referenced in the project

Resolution

  • Ensure that only version 13.0.2000.0 Crystal Reports assemblies are referenced
  • Ensure that the web.config file only contains entries for version 13.0.2000.0 of the Crystal Reports assemblies

Keywords

CR2010 2010 CR4VS2010 CR4VS VS2010 NET2010 Crystal Reports for .NET Framework 4.0 crforvs 13 , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio