0

我在尝试在 Report Manager 和 Reporting Services 中查看报告时收到以下错误:“

您的浏览器不支持脚本或已配置为不允许脚本”我已确保启用脚本并将站点添加到我的受信任站点但仍然无法正常工作。我错过了什么?我使用的是 SQL Server 2008 R2。我的报告在测试 Windows 应用程序中工作正常,但在浏览器中不能正常工作。我可以看到报告和工具栏的页眉和页脚,但正文是空的。只有当我选择查看源时,我才看到错误。

这是我查看源代码时的完整错误:

<div>
Your browser does not support scripts or has been configured not to allow scripts.
<span id="ctl31_ReportViewer">
<div id="ctl31" onclick="if ($get('ctl31_ctl04') != null &amp;&amp; $get('ctl31_ctl04').control != null) $get('ctl31_ctl04').control.HideActiveDropDown();" onactivate="if ($get('ctl31_ctl04') != null &amp;&amp; $get('ctl31_ctl04').control != null) $get('ctl31_ctl04').control.HideActiveDropDown();" style="height:100%;width:100%;"></div>
<div id="ctl31_HttpHandlerMissingErrorMessage" style="border-color:Red;border-width:2px;border-style:Solid;padding:10px;display:none;overflow:auto;font-size:.85em;">
   <h2>
      Report Viewer Configuration Error
   </h2>
   <p>The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file.  Add &lt;add verb=&quot;*&quot; path=&quot;Reserved.ReportViewerWebControl.axd&quot; type = &quot;Microsoft.Reporting.WebForms.HttpHandler, ReportingServicesWebUserInterface, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91&quot; /&gt; to the system.web/httpHandlers section of the web.config file, or add &lt;add name=&quot;ReportViewerWebControlHandler&quot; preCondition=&quot;integratedMode&quot; verb=&quot;*&quot; path=&quot;Reserved.ReportViewerWebControl.axd&quot; type=&quot;Microsoft.Reporting.WebForms.HttpHandler, ReportingServicesWebUserInterface, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91&quot; /&gt; to the system.webServer/handlers section for Internet Information Services 7 or later.</p>
</div>
<span id="ctl31_ctl03"><input type="hidden" name="ctl31$ctl03$ctl00" id="ctl31_ctl03_ctl00" /><input type="hidden" name="ctl31$ctl03$ctl01" id="ctl31_ctl03_ctl01" /></span><input type="hidden" name="ctl31$ctl10" id="ctl31_ctl10" /><input type="hidden" name="ctl31$ctl11" id="ctl31_ctl11" />
<div id="ctl31_AsyncWait" style="background-color:White;opacity:0.7;position:absolute;display:none;filter:alpha(opacity=70);">

我什至在测试 Web 应用程序中遇到这些错误,即使启用了脚本并且我的 httpHandlers 是在我的 web 配置中为 system.web 和 system.webserver 定义的。

4

0 回答 0