Click here to Skip to main content
16,017,726 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
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:
C#
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
Updated 4-Oct-11 16:21pm
v2

 
Share this answer
 
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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900