报表查看器Web控制HTTP处理程序还没有被注册在应用程序的web.config文件 [英] The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file

查看:2572
本文介绍了报表查看器Web控制HTTP处理程序还没有被注册在应用程序的web.config文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 报表查看器Web控制HTTP处理程序还没有被注册在应用程序的
web.config文件。添加<添加动词=*路径=Reserved.ReportViewerWebControl.axd类型=
Microsoft.Reporting.WebForms.HttpHandler,Microsoft.ReportViewer.WebForms,版本= 9.0.0.0,
文化=中性公钥= b03f5f7f11d50a3a/>到对System.Web / HttpHandlers的web.config文件中的部分

此错误正在到来。我已经提到过在HTTP处理程序这条线,但仍收到此错误

 <添加路径=Reserved.ReportViewerWebControl.axd动词=*TYPE =Microsoft.Reporting.WebForms.HttpHandler,Microsoft.ReportViewer.WebForms,版本= 8.0。 0.0,文化=中性公钥= 0000000000000000验证=FALSE/>

我的HTML页面标记是如下

 <%@注册大会=Microsoft.ReportViewer.WebForms,版本= 9.0.0.0,文化=中性公钥= b03f5f7f11d50a3a
    命名空间=Microsoft.Reporting.WebForms标签preFIX =rsweb%GT;< ASP:内容ID =内容1ContentPlaceHolderID =ContentPlaceHolder1=服务器>
< ASP:按钮的ID =btnSubmit按钮=服务器的OnClick =GenerateReportButton_Click/>
    < rsweb:ID的ReportViewer =ReportViewer1=服务器>
    < / rsweb:&的ReportViewer GT;
< / ASP:内容>

Web配置组件部分如下:

 <&集会GT;
    <添加组件=System.Core程序,版本= 3.5.0.0,文化=中性公钥= B77A5C561934E089/>
    <添加组件=System.Web.Extensions程序,版本= 3.5.0.0,文化=中性公钥= 31BF3856AD364E35/>
    <添加组件=System.Data.DataSetExtensions,版本= 3.5.0.0,文化=中性公钥= B77A5C561934E089/>
    <添加组件=System.Xml.Linq的,版本= 3.5.0.0,文化=中性公钥= B77A5C561934E089/>
    <添加组件=System.Web.DataVisualization,版本= 3.5.0.0,文化=中性公钥= 31BF3856AD364E35/>
    <添加组件=System.Windows.Forms的,版本= 2.0.0.0,文化=中性公钥= B77A5C561934E089/>
    <添加组件=Microsoft.ReportViewer.WebForms,版本= 9.0.0.0,文化=中性公钥= B03F5F7F11D50A3A/>
    <添加组件=Microsoft.ReportViewer.Common,版本= 9.0.0.0,文化=中性公钥= B03F5F7F11D50A3A/>
< /组件>


解决方案

我有非常相同的问题。发生了什么事,我把报告装载程序上的Page_Load,如果不把它包在(!的IsPostBack)。该做的ReportViewer一个POST到页面,这是触发的Page_Load和重装的报告,不知何故搞乱它。把一切都放到里面之后,如果(!的IsPostBack),它的工作就像一个魅力。

    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=9.0.0.0, 
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> to the system.web/httpHandlers section of the web.config file

This error is coming . I have already mentioned this line in http handler but still getting this error

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

my html page markup is as follow

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Button ID="btnsubmit" runat="server" OnClick="GenerateReportButton_Click" />
    <rsweb:ReportViewer ID="ReportViewer1" runat="server">
    </rsweb:ReportViewer>
</asp:Content>

Web config assemblies section is as follows :

<assemblies>
    <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
    <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>

解决方案

I was having the very same problem. What happened was I put the Report loading routine on Page_Load, and didn't wrap it in if (!IsPostBack). The ReportViewer makes a POST to the page, and that was triggering Page_Load and reloading the report, somehow messing it up. After putting everything inside if (!IsPostBack), it worked like a charm.

这篇关于报表查看器Web控制HTTP处理程序还没有被注册在应用程序的web.config文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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