Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Dear Friends,

I have installed the final version of Crystal Reports for Visual Studio 2010. I created a new ASP.Net project, saved it, closed it, and then came back to it later. I was prompted to convert the project because of an out of date version of Crystal Reports. But I just created the project...how can the version already be out of date? Also, once the conversion is complete the CrystalReportViewers error stating "Unable to cast object of type 'CrystalDecisions.Web.CrystalReportViewer' to type 'CrystalDecisions.Web.CrystalReportViewerBase'. I am using .NET Framework 4.0 for other . How to solve this problem?.please help me.




Thanks,
Ramu
Posted
Updated 16-Jul-12 19:33pm
v2

i have same problem and i solve it by changing the version number :

steps to the solution :
1- drag and drop your viewer on the page .
2- the register tag will be generated at the top of the page .
3- go to webconfig >> copy the version number from line similier to this tag :

"add assembly="CrystalDecisions.Web, Version=.......

4 - paste the version number instead of the version on the register tag.

"<%@ Register Assembly="CrystalDecisions.Web, Version=......., Culture=neutral, PublicKeyToken=692fbea5521e1304"
Namespace="CrystalDecisions.Web" TagPrefix="CR" %>"
 
Share this answer
 
You sure you installed this version of Crystal reports for VS 2010: Crystal Viewer for VS2010 download[^]

Try and use the above one in case there is a difference in version.
 
Share this answer
 
hi..

go to web.config file
copy the version number of the crystal report viewer
go to the page source where report viewer is placed
change the version of the crystaldecission.web registration line with the version number copied from web.config

eg. your report viewer page will have assembly register line with version 10.0.3600.0.
change it to 13.0.2000.0


this will solve the issue..
 
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