报表查看器配置错误-在网页的查看源中 [英] Report Viewer Configuration error - In View Source of webpage

查看:72
本文介绍了报表查看器配置错误-在网页的查看源中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我选中查看网页的源代码"时,发现以下错误消息,但是该网页工作正常.我们的测试主管在执行断言测试时发现了错误.

I found the following error message when I checked View source of the web page , but the web page works just fine. Our Test lead found the error while performing Assertion tests.

报表查看器配置错误:

尚未在应用程序的web.config文件中注册Report Viewer Web控件HTTP处理程序.添加

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,Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" /> 

添加到web.config文件的system.web/httpHandlers部分,或添加

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,Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a" />

访问Internet Information Services 7或更高版本的system.webServer/handlers部分

to the system.webServer/handlers section for Internet Information Services 7 or later

为什么此错误消息出现在视图源中.

Why is this error message coming up in view source..

注意:此错误消息周围有一个div标签,其样式为="display:none"

Note: There is a div tag around this error message which has style="display:none"

我试图找出原因,但每个人都只讨论了此错误消息,并将其作为在网页中抛出的错误消息进行了讨论.建议对web.config进行的更改已存在于我们的配置文件中.

I am trying to find out why but everybody has only discussed this error message as one which is thrown in the webpage. The changes suggested to web.config are already present in our config file.

推荐答案

以下是我的解决方案:

<system.web>
  <httpHandlers>
    <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>
</system.webServer>

这篇关于报表查看器配置错误-在网页的查看源中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆