当我选中查看网页的源代码时,我发现以下错误消息,但网页工作正常.我们的测试负责人在执行断言测试时发现了错误.
报告查看器配置错误:
报表查看器Web控件HTTP处理程序尚未在应用程序的web.config文件中注册.加
Run Code Online (Sandbox Code Playgroud)<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部分,或添加
Run Code Online (Sandbox Code Playgroud)<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部分
为什么在查看源中出现此错误消息..
注意:此错误消息周围有一个div标签,其style ="display:none"
我试图找出原因,但每个人只讨论过这个错误信息,因为它是在网页中引发的.建议web.config的更改已存在于我们的配置文件中.