Click here to Skip to main content
15,891,704 members

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

Sagotharan Jagadeeswaran asked:

Open original thread
Hi friends,

I install Crystal Reports for Visual Studio 2010 - Complete Package (EXE) on http://www.sdn.sap.com/irj/sdn/crystalreports-dotnet.

I add reference,
CrystalDecisions.CrystalReports.Engine
CrystalDecisions.ReportSource
CrystalDecisions.Shared
CrystalDecisions.Windows.Forms
CrystalDecisions.VSDesigner in
C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\


then add CrystalReport2.rpt in my project. but i got so many errors.,

Error	1	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs	14	11	User
Error	2	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs	15	11	User
Error	3	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs	16	11	User
Error	4	The type or namespace name 'ReportClass' could not be found (are you missing a using directive or an assembly reference?)	D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs	19	35	User
Error	5	The type or namespace name 'ICachedReport' could not be found (are you missing a using directive or an assembly reference?)	D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs	93	52	User
Error	6	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	D:\Jagadeeswaran\Project\User\User\FeedbackReport.xaml.cs	14	7	User
Error	7	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs	53	16	User
Error	8	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs	61	16	User
Error	9	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs	69	16	User
Error	10	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs	77	16	User
Error	11	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs	85	16	User
Error	12	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs	131	24	User
Error	13	The type or namespace name 'RequestContext' could not be found (are you missing a using directive or an assembly reference?)	D:\Jagadeeswaran\Project\User\User\CrystalReport2.cs	137	53	User
Error	21	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	D:\Jagadeeswaran\Project\User\User\obj\x86\Debug\FeedbackReport.g.cs	12	7	User


How to Solve the Problem?

Warning	14	The referenced assembly "CrystalDecisions.Windows.Forms, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.	User
Warning	15	The referenced assembly "CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.	User
Warning	16	The referenced assembly "CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.	User
Warning	17	The referenced assembly "CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.	User
Warning	18	The referenced assembly "CrystalDecisions.VSDesigner, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.	User
Warning	19	The referenced assembly "CrystalDecisions.VSDesigner, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.	User
Warning	20	The referenced assembly "CrystalDecisions.VSDesigner, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.	User


How to Solve the Problem?
Tags: WPF, CrystalReports

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



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