代码之家  ›  专栏  ›  技术社区  ›  Charlotte Skardon

获取javascript错误:$create(microsoft.reporting.webformsclient.reportviewer

  •  3
  • Charlotte Skardon  · 技术社区  · 14 年前

    我们有一个报表查看器,它将以下JScript添加到ASPX文件中:

    //<![CDATA[
    Sys.Application.add_init(function() {
    
    if (typeof Microsoft == 'undefined' ||
        typeof Microsoft.Reporting == 'undefined' ||
        typeof Microsoft.Reporting.WebFormsClient == 'undefined' ||
        typeof Microsoft.Reporting.WebFormsClient.ReportViewer == 'undefined')
        Sys.UI.DomElement.setVisible($get('ReportViewer1_HttpHandlerMissingErrorMessage'), true);
        $create(Microsoft.Reporting.WebFormsClient.ReportViewer, {"_internalViewerId":"ReportViewer1_ctl03","id":"ReportViewer1"}, null, null);
    });
    

    但当它点击

    $create(Microsoft.Reporting.WebFormsClient.ReportViewer
    

    线。 我们刚从Silverlight 3/VS2008升级到SL4 VS2010-是否缺少某些内容?

    3 回复  |  直到 8 年前
        2
  •  2
  •   Brian Webster    12 年前

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

        3
  •  0
  •   Matt    8 年前

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

    <httpHandlers> <system.web>


    <system.webServer>
      <handlers>
         <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
      </handlers>
      ...
    

    Web.config here