尝试在报表管理器和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 && $get('ctl31_ctl04').control != null) $get('ctl31_ctl04').control.HideActiveDropDown();" onactivate="if ($get('ctl31_ctl04') != null && $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 <add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, ReportingServicesWebUserInterface, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> to the system.web/httpHandlers section of the web.config file, or add <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, ReportingServicesWebUserInterface, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> 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应用程序中遇到这些错误,即使启用了脚本编写,我的httpHandler也在我的web配置中为system.web和system.webserver定义。