Click here to Skip to main content
15,884,425 members
Please Sign up or sign in to vote.
3.29/5 (4 votes)
See more:
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?
Posted
Updated 25-Feb-23 4:17am
v3
Comments
Tarun.K.S 7-Apr-11 3:24am    
Why did you repost the question?
Sagotharan Jagadeeswaran 7-Apr-11 4:10am    
What u mean that Why did you repost the question?.

r u know ans?
Sagotharan Jagadeeswaran 7-Apr-11 8:01am    
its not a same questions. R u mad?.

That first question is whether crystal report is need sap exe?. and i ask the missing assembly version problem.

this is another one which after exe installed problem.

do u think you only genius?. i come here for some help. but you rejected that.

go to the properties of your project,
choose Target framework as .Net framework 4
and Platform Target as x86 or x64 not use any.
 
Share this answer
 
v2
Comments
Sagotharan Jagadeeswaran 19-May-11 6:47am    
Thank u.
Rudie du Preez 9-Aug-11 8:10am    
Thanks!
mwolfo 20-Mar-12 17:45pm    
Thanks! it worked for me!
caom 2-Apr-12 23:18pm    
Thanks. You save my day...
nebojsa91 28-May-12 10:47am    
Thanks.
I never worked in WPF. But I give you solved links for the below error because these are solutions for normal win/web applications.
The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)


Link 1[^]

Link 2[^]

Link 3[^]

Link 4[^]

If still you are facing any issues then let us know.
 
Share this answer
 
Comments
Sagotharan Jagadeeswaran 8-Apr-11 1:13am    
thanks friend.,

i also googled and get that answers. I change my project to .Net Framework 4".

that dlls not supported in vs 2010 client version. Now my problem was solved. but i cant get the crystal report. i posted that on http://www.codeproject.com/Questions/178397/Problem-on-Crystal-Reports-Log-in.aspx.

thank u.
arbaks 27-Apr-11 8:08am    
thank u . it work
Member 7849099 1-Mar-12 8:54am    
THanks for ur reply !!
thatraja 1-Mar-12 9:04am    
You welcome
Hi Sagotharan Jagadeeswaran,

try this

Set your Framework to 4.0, not the client version. Also, set your platform to either X86 or X64, not Any.

Thank you
 
Share this answer
 
Comments
Thomas Daniels 22-Dec-12 9:03am    
Why do you answer to a question from 2011? The question is solved already.
mehdiiii 9-Jan-13 10:57am    
Thank you
paul_makram 1-Dec-15 5:48am    
hank u you save my time too much
Try this

as By Ahmed Omer , set framework to 4.0 , not the client version.

also , set your platform to either 64 bit or 32 bit ,Not any.
 
Share this answer
 
Comments
Anyx_ 25-Jan-16 15:19pm    
Thanks I was looking for a long time!

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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