Error: unable to cast object of type CrystalDecision.Web.CrystalReportViewer to type CrystalDecisions.Web.CrystalReportViewerBase in ASP.Net

Last Reply one year ago By dharmendr

Posted one year ago

unable to cast object of type 'CrystalDecision.Web.CrystalReportViewer' to type "CrystalDecisions.Web.CrystalReportViewerBase."

What I do ?

Posted one year ago Modified on one year ago

Hi adnanali,

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 similar to this tag.

<add assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

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

<%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %>

 

I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html