Last post Mar 20, 2011 08:10 PM by Careed
Feb 11, 2008 01:00 PM|codemad|LINK
I have vb2005 installed on my machine .
I installed CR X1 Release 2 to connect CR X1 R2 reports to vb 2005.
After CR XI R2 install, I added CRViewer component of version 11.5.3700.0 to the toolbox.
If I place it this component on .aspx page, it gives this error:
"Unable to cast object of type CrystalDecisions.Web.CrystalReportViewer to type CrystalDecisions.Web.CrystalReportViewerBase"
If I check the references that get added, can see these:
crystalDecisions.CrystalReports.Engine 11.5.3700.0 from GAC
crystalDecisions.Enterprise.Desktop.Report 11.5.3300.0 from GAC
crystalDecisions.Enterprise.Framework 11.5.3300.0 from GAC
crystalDecisions.Enterprise.InfoStore 11.5.3300.0 from GAC
crystalDecisions.Enterprise.Viewing.ReportSource 11.5.3300.0 from GAC
crystalDecisions.ReportAppServer.ClientDoc 11.5.3300.0 from GAC
crystalDecisions.ReportAppServer.Controllers 11.5.3300.0 from GAC
crystalDecisions.ReportSource 11.5.3700.0 from GAC
crystalDecisions.Shared 11.5.3700.0 from GAC
crystalDecisions.Web 11.5.3700.0 from GAC
Any idea why I get this error? Please let me know.
Feb 11, 2008 03:04 PM|Careed|LINK
Do you have CR assembly information in your web.config? If so, is it the R2 version or the original CRXI (11.5.3300.0) version?
Feb 11, 2008 03:33 PM|codemad|LINK
Yes I can see all the above mentioned references in web.config , some have 11.5.33 version and some have 11.5.37 version like below:
assembly="CrystalDecisions.CrystalReports.Engine, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=789xx"/>
assembly="CrystalDecisions.ReportSource, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=789xx"/>
assembly="CrystalDecisions.Shared, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=789xx"/>
assembly="CrystalDecisions.Web, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=789xx"/>
assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=789xx"/>
assembly="CrystalDecisions.Enterprise.Framework, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=789xx"/>
assembly="CrystalDecisions.Enterprise.InfoStore, Version=11.5.3300.0, Culture=neutral, PublicKeyToken=789xx"/>
When I keep the control on the page and build the page, I get this error:
Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=11.5.3700.0, Culture=neutral, PublicKeyToken=789xx' or one of its dependencies. The system cannot find the file specified.
Error creating Tag panel: Could not load file or assembly 'CrystalDecisions.VSDesigner, Version = 11.5.3700.0'
or one of its dependencies. The located assembly's manifest definition does not match the assembly reference
Thanks for your help!
Feb 17, 2008 10:18 PM|Careed|LINK
Feb 22, 2008 07:10 PM|codemad|LINK
So, when you keep the viewer on any page, do you see the same references added as I have shown?
Can you see these references in GAC? I see only version 11.5.3300.0 references in GAC.
Did you install CR X1 Release 2 then CR X1 Server Release 2(Client side version) and after that did you install any other service packs?
Please let me know. Thanks!
Feb 22, 2008 10:27 PM|Careed|LINK
When I installed CR XI R2, I installed everything at the same time, including the server (GAC) components. I have not installed any service packs.
If you only see version 11.5.3300.0 in the GAC, then it definitely appears that you do not have the R2 components installled. Have you tried to reinstall these?
Mar 20, 2011 11:32 AM|ebeltran|LINK
If this is a new project... and you do not have any other Report Page created... remove all references to Crystal in the web.config file...
worked for me...
Mar 20, 2011 08:10 PM|Careed|LINK
This only works if you have only one version of Crystal for .NET on your computer. Otherwise, if you are using a report built on one version that has more features than the "default" version (the reference are actually contained at the machine.config level),
then you will get errors as a result of that.