JScript error with Web Report Viewer in VS2010 Beta 2
- Hi, anyone tried the Web Report Viewer in VS2010 Beta 2?
First of all, it asked me to add the script manager in the page, and after I did that, I got this error
Microsoft JScript runtime error: 'Microsoft' is undefined
And it happened at this line:
$create(Microsoft.Reporting.WebFormsClient.ReportViewer, {
"_internalViewerId":"ctl00_MainContent_ReportViewer1_ctl03","id":"ctl00_MainContent_ReportViewer1"}, null, null);
Any idea? Thanks
All Replies
- I'm unable to reproduce the problem you are seeing can you provide a little more information so I can help you debug:
- What OS are you using and which SKU of VS are you using
- Which version of the Framework are you targeting 3.5 or 4.0
- Are you creating a Web Application or Web Site
- Which project template did you use when you created the project
- Is there anything else on your page other than the ReportViewer
This posting is provided "AS IS" with no warranties, and confers no rights - 1. Windows 7
2. .Net 4.0
3. Web App
4. Template: Visual C# -> Web -> ASP.NET Web Application
5.
Default.aspx:
<%
@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
<%
@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</
asp:Content>
<
asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<h2>
Welcome to ASP.NET!
</h2>
<p>
To learn more about ASP.NET visit
<a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>.
</p>
<p>
You can also find
<a href="http://go.microsoft.com/fwlink/?LinkID=152368&clcid=0x409"
title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
</p>
<rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Local">
<LocalReport ReportEmbeddedResource="WebApplication1.Report1.rdlc"></LocalReport>
</rsweb:ReportViewer>
</
asp:Content>
-------------------------------------
Site.Master:
...
<
body><form runat="server"><asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div class="page">
...
Thanks - Hi Matt,
Any update on this issue?
Thanks


