SAP Knowledge Base Article - Public

1803137 - Error: The type or namespace name 'CrystalDecisions' could not be found...

Symptom

  • Using the Microsoft Team Foundation Server (TFS) to build an application results in the error:

    "The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)"

 

Environment

  • SAP Crystal Reports for Visual Studio 2010
  • Visual Studio 2010

Reproducing the Issue

  1. Create a TFSBuild Project that uses Crystal Reports
  2. Queue the New Build from Team Explorer | Builds | Project MyApp

Cause

  • Missing references
  • Crystal Reports DLLS's are not available on TFS build server

Resolution

  1. Copy the Crystal Reports assemblies used in the project to the applicaiton root directory (Where the .sln file exists)
  2. Create a new folder "BuildAssemblies" in the solution
  3. Add the all dlls in the folder from step 1 above
  4. Check in all the dlls' from "BuildAssemblies"
  5. Queue new build from Team Explorer | Builds |Project MyApp

Keywords

CR2010 2010 CR4VS2010 CR4VS VS2010 NET2010 Crystal Reports for .NET Framework 4.0 crforvs 13 team foundation server , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio