Click here to Skip to main content
15,890,670 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all!!

I am trying to generate a report using crystal reports.

when i build the solution it shows me error that
The type 'CrystalDecisions.Web.CrystalReportViewer' exists in both 'c:\Windows\assembly\GAC_MSIL\CrystalDecisions.Web\13.0.2000.0__692fbea5521e1304\CrystalDecisions.Web.dll' and 'c:\Windows\assembly\GAC_MSIL\CrystalDecisions.Web\10.5.3700.0__692fbea5521e1304\CrystalDecisions.Web.dll'	C:\Users\Ujjwal\Documents\Visual Studio 2010\WebSites\4.0\Crystal\Default.aspx

when i remove the reference, it shows me that:
The type 'CrystalDecisions.CrystalReports.Engine.ReportDocument' exists in both 'c:\Windows\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\10.5.3700.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll' and 'c:\Windows\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\13.0.2000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll'

after that it shows me invalid report source.

I am using a code project article to make this report
Generate a Report using Crystal Reports in Visual Studio 2010[^]

Please help me out i am stuck here from ages and can't seem to find a suitable solution.
Posted
Updated 14-May-12 22:43pm
v3

Because u added different Crystal report references in same solution....... Take only the updated one ... i hope it will solve Ur problem....
 
Share this answer
 
It sounds like your application has references to two versions v13.0 & v10.5. You need to make sure that your application is only referencing one version of CR.

Remove one reference not needed and check Web.Config file that only one reference is present - the one which you need.
Clear your cache. Clean and then rebuild the application.
 
Share this answer
 
I was trying to change the assembly reference in web.config but it didn't worked even when i have removed all the v10.5 references which were also there for v13.

Then i only change the version in my .aspx page and it worked.. :)
 
Share this answer
 
Dear Friend,

Install...Crystal Report Business Objects, May be it will work.
 
Share this answer
 

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