Click here to Skip to main content
11,480,031 members (66,594 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.5 CrystalReports , +
I am getting an error message when I create my Crystal Report and build the project. The error message is:
"type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?"

I have seen some responses that Targeted Framework should be
".net Framework 4 client profile", but that did not solve the problem.

I am using Visual Studio 2010 with Crystal Reports built in menu option and I have the following references in my project:
    using CrystalDecisions.Shared;
    using CrystalDecisions.ReportSource;
    using CrystalDecisions.CrystalReports.Engine;

The code with the using statements is built for me when I create the .rpt file, so I don't know why it is having a problem.

Does anyone know why this is happening?
Posted 4-Oct-11 13:39pm
Edited 4-Oct-11 17:21pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

I had the same problem and this is what I did. I went to the properties of my project and chose .NET Framework 4 as the target Framework instead of .NET Framework 4 Client Profile. I rebuild my project afterwards and it worked.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 235
1 Sergey Alexandrovich Kryukov 215
2 Richard MacCutchan 100
3 F-ES Sitecore 75
4 DamithSL 65
0 Sergey Alexandrovich Kryukov 7,890
1 OriginalGriff 7,556
2 Sascha Lefèvre 3,064
3 Maciej Los 2,491
4 Richard Deeming 2,335


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 1 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100