Last post Jan 04, 2012 07:33 AM by Yuppski
Apr 08, 2011 06:11 AM|amitpatel.it|LINK
I am createting crystal reports in VS 10 and getting below errors.
The base class includes the field 'CrystalReportViewer1', but its type (CrystalDecisions.Web.CrystalReportViewer) is not compatible with the type of control (CrystalDecisions.Web.CrystalReportViewer).
I have done below steps.
1. Added Crystal reprots. - Employee.rpt
2. Create new connection add few sample column
3. Check data in main preview - Data is comming perfectly
4. Add one new aspx page and add Crystal Report viewer controls
5. Add Report Source ID by its property
6. Go to pages desing view and there I can see reports structure with data.
Now run the application and got this error.
Apr 08, 2011 10:24 AM|Stevishere|LINK
Would you please post the relevant code?
Apr 09, 2011 04:43 AM|amitpatel.it|LINK
As I mention in my explanation, Currenly I have just drang and drop with few column in crystal report and that reports I have attach with manually set report viewer's property.. So below are the auto generated code..
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
AutoDataBind="True" GroupTreeImagesFolderUrl="" Height="1202px"
ToolPanelWidth="200px" Width="1104px" />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
I want to write a code in codebehind first I want to this configuration related error...
I am sure that is some versioning related error but I dont know how to solve it.
Apr 09, 2011 04:47 AM|amitpatel.it|LINK
I have change the version of the crystal report related tag in web.config and my problem getting solved...
Below are the tag where I have made changes...
<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
Apr 11, 2011 11:03 PM|necro_mancer|LINK
thanks for sharing this valuable post.
I appreciate it!
Jan 04, 2012 07:33 AM|Yuppski|LINK
My error was from contverting from VS2008 to VS2010.
Any I found that a reference on one of my pages had not been changed (Master Page). It needs to be:-
<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
and not the older version:-
<%@ Register assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
This solved it for me.