How to solve reportviewer from VS2010 to VS2015

I searched for the answer and the trial version in half a day. I am using VS2015 and MS SQL SERVER 2008 R2, which were developed in VS2010.

however, an error appears

ASP.NET runtime error: the base class includes the 'ReportViewer1' field, but its type (Microsoft.Reporting.WebForms.ReportViewer) is incompatible with the control type (Microsoft.Reporting.WebForms.ReportViewer). please change the associated registration that is ambiguous and select a new tag prefix

I can not find reportViewer.Webfor.dll v12.0.0.0. I followed the following steps / procedures, ReportViewer is still invalid:
Thanks for the help!

  • set ReportViewer 2015 runtime, Viewer 2010 redistributable report package.
  • install SQL Server 2015 data tool
  • 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> 
+7
c # visual-studio-2015 reportviewer
source share
1 answer

I solve my problem. you need to uninstall the whole old version of V10 and add a new version of v12 from 4 reportviewer.dll.
path is C: \ Windows \ assembly \ GAC_MSIL \ Microsoft.ReportViewer.Common
secondly, we need to copy these .dll files and paste them into the bin folder in your project.
Then you can run your Reportviewer perfectly

+5
source share

All Articles