nurul azuana

nurul azuana

  • NA
  • 2
  • 3.6k

How do I build a report viewer in an ASP.net page

Jul 20 2017 12:31 AM
I am trying to build a report viewer in an ASP.net page. When I drag ReportViewer to my aspx page, instead of the smart tag populating with options to select, I get a box stating "Error Creating Control - ReportViewer1Failed to create designer 'Microsoft.Reporting.WebForms.ReportViewer, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'".
 
 
Then I realize that ReportViewer from toolbox is actually version 11.0.0.0. But when I check at Package Manager Console, it said
"PM> install-package microsoft.report.viewer
'Microsoft.Report.Viewer 11.0.0.0' already installed.
Task1 already has a reference to 'Microsoft.Report.Viewer 11.0.0.0'."
 
 
This is a new local install with Visual Web Developer 2010 Express and SQL Server 2008. I installed Microsoft Report Viewer Redistributable 2008.
 
 
Has anyone seen this or know the cause? I have searched everywhere.
 
I have tried to download and install ReportViewer 8.0.0.0, 10.0.0.0, 11.0.0.0, 12.0.0.0 but I still get a box stating "Error Creating Control - ReportViewer1Failed to create designer 'Microsoft.Reporting.WebForms.ReportViewer, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'".
 
Here is my Web.config:
 
<assemblies>
<add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
<add assembly="Microsoft.ReportViewer.ProcessingObjectModel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
<add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/></assemblies>


Answers (1)