Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Unable to use ReportViewer in web forms application Expand / Collapse
Posted Saturday, March 22, 2014 10:19 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, April 9, 2015 9:18 AM
Points: 3, Visits: 39
I have installed the ReportViewer version 11 download and am struggling to get it to work at all in Visual Studio 2013.

I created an empty web ASP.Net Web application and add a webform. To this aspx I drag from the toolbox a ScriptManager control as well as a ReportViewer control. Doing this adds the following line at the top of the file:

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

I check references and see that Microsoft.ReportViewer.WebForms exists and is of version 11.

Finally here is my updated Web.config:

<?xml version="1.0"?>
For more information on how to configure your ASP.NET application, please visit

<validation validateIntegratedModeConfiguration="false" />

<add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />

<compilation debug="true" targetFramework="4.5">
<add assembly="Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
<add assembly="Microsoft.ReportViewer.Common, Version=, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
<add assembly="Microsoft.Build.Framework, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<httpRuntime targetFramework="4.5"/>

Running the project gives the following error:

0x800a1391 - JavaScript runtime error: 'Microsoft' is undefined

I've uploaded the test solution here in case it helps:

Post #1553770
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse