Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WPF CrystalReports
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 6-Apr-11 22:10pm
Edited 8-Apr-11 18:26pm
thatraja242.3K
v3
Comments
Tarun.K.S at 7-Apr-11 3:24am
   
Why did you repost the question?
Sagotharan Jagadeeswaran at 7-Apr-11 4:10am
   
What u mean that Why did you repost the question?.
 
r u know ans?
Sagotharan Jagadeeswaran at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

go to the properties of your project,
choose Target framework as .Net framework 4
and Platform Target as x86 or x64 not use any.
  Permalink  
v2
Comments
Sagotharan Jagadeeswaran at 19-May-11 6:47am
   
Thank u.
Rudie du Preez at 9-Aug-11 8:10am
   
Thanks!
mwolfo at 20-Mar-12 17:45pm
   
Thanks! it worked for me!
caom at 2-Apr-12 23:18pm
   
Thanks. You save my day...
nebojsa91 at 28-May-12 10:47am
   
Thanks.
sridevibathula at 20-Aug-12 1:36am
   
Thanks - my problem is solved
david markal at 11-Sep-12 8:35am
   
thank you very much the answer to end mysuffering for 2 days ago ..
nguyenvanliep at 15-Dec-12 0:54am
   
Thank you!
bharat peggem at 28-Apr-13 7:11am
   
thank you for help of u r answer bharat
amin69 at 22-Jun-13 8:29am
   
خیلی خیلی ممنونم هم کره ای
bojankos23 at 2-Apr-14 11:43am
   
thanks!
s.aravindan at 10-Apr-14 8:20am
   
Thank you very much, this has solved my problem
krupeshshah at 3-Sep-14 0:29am
   
Thanks !
Soundararajan O M at 18-Nov-14 6:02am
   
thanks a lot help at the spot in ur article keep sharing
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
  Permalink  
Comments
ProgramFOX at 22-Dec-12 9:03am
   
Why do you answer to a question from 2011? The question is solved already.
mehdiiii at 9-Jan-13 10:57am
   
Thank you
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Sagotharan Jagadeeswaran at 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 at 27-Apr-11 8:08am
   
thank u . it work
Member 7849099 at 1-Mar-12 8:54am
   
THanks for ur reply !!
thatraja at 1-Mar-12 9:04am
   
You welcome
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

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.
  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 480
1 Maciej Los 330
2 Richard MacCutchan 225
3 BillWoodruff 185
4 Suraj Sahoo | Coding Passion 155
0 OriginalGriff 8,759
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,269
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web01 | 2.8.1411028.1 | Last Updated 28 Jun 2013
Copyright © CodeProject, 1999-2014
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