Click here to Skip to main content
12,399,975 members (47,885 online)
Rate this:
 
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 21:10pm
Updated 8-Apr-11 17:26pm
thatraja248.2K
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.
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  
Comments
Anyx_ 25-Jan-16 15:19pm
   
Thanks I was looking for a long time!
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 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.
sridevibathula 20-Aug-12 1:36am
   
Thanks - my problem is solved
david markal 11-Sep-12 8:35am
   
thank you very much the answer to end mysuffering for 2 days ago ..
nguyenvanliep 15-Dec-12 0:54am
   
Thank you!
bharat peggem 28-Apr-13 7:11am
   
thank you for help of u r answer bharat
amin69 22-Jun-13 8:29am
   
خیلی خیلی ممنونم هم کره ای
bojankos23 2-Apr-14 11:43am
   
thanks!
s.aravindan 10-Apr-14 8:20am
   
Thank you very much, this has solved my problem
krupeshshah 3-Sep-14 0:29am
   
Thanks !
Soundararajan O M 18-Nov-14 6:02am
   
thanks a lot help at the spot in ur article keep sharing
Pratham Dave 3-Dec-14 5:09am
   
Thank you very much, this has solved my problem...
Member 11417776 1-Feb-15 1:29am
   
thanks a lot dear engineer
Member 11521959 15-Mar-15 10:03am
   
thank you that you solve my problem .its very helpfull for such type of problem.
paul_makram 1-Dec-15 5:47am
   
Thank u you save my time too much
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 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
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 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

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


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 18 Dec 2015
Copyright © CodeProject, 1999-2016
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