Visual Studio Developer Center > Visual Studio Forums > Visual Studio Report Controls > JScript error with Web Report Viewer in VS2010 Beta 2
Ask a questionAsk a question
 

QuestionJScript error with Web Report Viewer in VS2010 Beta 2

  • Wednesday, October 28, 2009 4:58 PMln613 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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

  • Wednesday, October 28, 2009 5:57 PMMatt Meyer - MSFTMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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

  • Wednesday, October 28, 2009 6:40 PMln613 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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&amp;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
  • Thursday, October 29, 2009 6:58 PMln613 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Matt,

    Any update on this issue?


    Thanks