I 've searched the answer and trial for half day. I am using VS2015 and MS SQL SERVER 2008 R2 that the project was develop in VS2010.
however, the error appears,
ASP.NET runtime error: The base class includes the field 'ReportViewer1', but its type (Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Microsoft.Reporting.WebForms.ReportViewer). please modify the associated registration that is causing ambiguity and pick a new tag prefix
I cannot find reportViewer.Webfor.dll v12.0.0.0. I've done the following steps/procedures , ReportViewer is still invalid:
Thanks for helping!!
in .aspx,
<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=12.0.0.0,
Culture=neutral, PublicKeyToken=89845dcd8080cc91"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
in web.config,
<handlers>
<add name="ReportViewerWebControlHandler" preCondition="integratedMode"
verb="*" path="Reserved.ReportViewerWebControl.axd"
type="Microsoft.Reporting.WebForms.HttpHandler,
Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=89845dcd8080cc91"/>
</handlers>
I solve my problem.
you have to delete all old version V10 and add new version v12 of 4 reportviewer.dll.
the path is C:\Windows\assembly\GAC_MSIL\Microsoft.ReportViewer.Common
second, we need to copy those 4 .dll and paste into bin folder in your project.
Then you can perfectly run your reportviewer
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With