Click here to Skip to main content
15,921,276 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi there,

I am using VS 2010 C# and installed Crystal Reports for it.

I make new WFA solution, then i add new item -> CrystalReport1.rpt

When i want to execute application i have got a lot of errors:

I check references and there are these references ;/

Warning	13	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.	WindowsFormsApplication1

Warning	14	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.	WindowsFormsApplication1

Warning	15	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.	WindowsFormsApplication1

Error	1	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	C:\Users\Robert\Desktop\Nowy folder\WindowsFormsApplication1\WindowsFormsApplication1\CrystalReport1.cs	14	11	WindowsFormsApplication1

Error	2	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	C:\Users\Robert\Desktop\Nowy folder\WindowsFormsApplication1\WindowsFormsApplication1\CrystalReport1.cs	15	11	WindowsFormsApplication1

Error	3	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	C:\Users\Robert\Desktop\Nowy folder\WindowsFormsApplication1\WindowsFormsApplication1\CrystalReport1.cs	16	11	WindowsFormsApplication1

Error	5	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	C:\Users\Robert\Desktop\Nowy folder\WindowsFormsApplication1\WindowsFormsApplication1\CrystalReport1.cs	53	16	WindowsFormsApplication1

Error	6	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	C:\Users\Robert\Desktop\Nowy folder\WindowsFormsApplication1\WindowsFormsApplication1\CrystalReport1.cs	61	16	WindowsFormsApplication1

Error	7	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	C:\Users\Robert\Desktop\Nowy folder\WindowsFormsApplication1\WindowsFormsApplication1\CrystalReport1.cs	69	16	WindowsFormsApplication1

Error	8	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	C:\Users\Robert\Desktop\Nowy folder\WindowsFormsApplication1\WindowsFormsApplication1\CrystalReport1.cs	77	16	WindowsFormsApplication1

Error	9	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	C:\Users\Robert\Desktop\Nowy folder\WindowsFormsApplication1\WindowsFormsApplication1\CrystalReport1.cs	85	16	WindowsFormsApplication1

Error	11	The type or namespace name 'CrystalDecisions' could not be found (are you missing a using directive or an assembly reference?)	C:\Users\Robert\Desktop\Nowy folder\WindowsFormsApplication1\WindowsFormsApplication1\CrystalReport1.cs	131	24	WindowsFormsApplication1

Error	10	The type or namespace name 'ICachedReport' could not be found (are you missing a using directive or an assembly reference?)	C:\Users\Robert\Desktop\Nowy folder\WindowsFormsApplication1\WindowsFormsApplication1\CrystalReport1.cs	93	52	WindowsFormsApplication1

Error	4	The type or namespace name 'ReportClass' could not be found (are you missing a using directive or an assembly reference?)	C:\Users\Robert\Desktop\Nowy folder\WindowsFormsApplication1\WindowsFormsApplication1\CrystalReport1.cs	19	35	WindowsFormsApplication1

Error	12	The type or namespace name 'RequestContext' could not be found (are you missing a using directive or an assembly reference?)	C:\Users\Robert\Desktop\Nowy folder\WindowsFormsApplication1\WindowsFormsApplication1\CrystalReport1.cs	137	53	WindowsFormsApplication1
Posted

1 solution

Based on logs, it looks like, it's an issue of Crystal dll version mismatch.

Current, crystal dll used/installed is V13 which looks compatible with .NET Framework4.0. It seems you are not building application on .NET Framework 4.0. Thus, leading to errors.

Either modify and target .NET framework4.0 or else downgrade and use lower version of Crystal dll's. Make sure you refer them and the versioning are correct.

Also, try what is mentioned in this thread[^].
 
Share this answer
 
Comments
Uddhav Garkal 17-Mar-11 5:59am    
Thanks. its work......


Uddhav Garkal
Sandeep Mewara 17-Mar-11 7:18am    
You should then mark it as answer accepted.

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