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 asp.net web forms application Expand / Collapse
Author
Message
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: Sunday, July 20, 2014 4:08 PM
Points: 1, Visits: 10
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=11.0.0.0, 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
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>

<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
</system.webServer>
<system.web>

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



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


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:

[url=https://dl.dropboxusercontent.com/u/88853036/WebApplication6.zip][/url]
Post #1553770
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse