asp.net – 报表查看器Web控件HTTP处理程序尚未在应用程序的web.
发布时间:2020-12-15 23:29:57 所属栏目:asp.Net 来源:网络整理
导读: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.We
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 这个错误即将到来.我已经在http处理程序中提到了这一行,但仍然收到此错误 <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler,Version=8.0.0.0,PublicKeyToken=0000000000000000" validate="false" /> 我的html页面标记如下 <%@ Register Assembly="Microsoft.ReportViewer.WebForms,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配置程序集部分如下: <assemblies> <add assembly="System.Core,Version=3.5.0.0,PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Web.Extensions,PublicKeyToken=31BF3856AD364E35"/> <add assembly="System.Data.DataSetExtensions,PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Xml.Linq,PublicKeyToken=B77A5C561934E089"/> <add assembly="System.Web.DataVisualization,PublicKeyToken=31BF3856AD364E35"/> <add assembly="System.Windows.Forms,Version=2.0.0.0,PublicKeyToken=B77A5C561934E089"/> <add assembly="Microsoft.ReportViewer.WebForms,PublicKeyToken=B03F5F7F11D50A3A"/> <add assembly="Microsoft.ReportViewer.Common,PublicKeyToken=B03F5F7F11D50A3A"/> </assemblies> 解决方法
我遇到了同样的问题.发生了什么事情是将报表加载例程放在Page_Load上,并没有将其包装到if(!IsPostBack)中. ReportViewer对页面进行了POST,这是触发Page_Load并重新加载报告,不知何故搞砸了.将所有内容放在if(!IsPostBack)之后,就像一个魅力一样.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net-web-api – ASP.NET Web-API帮助-API生成器?
- asp.net – 用于.NET的HTML到RTF转换器
- ap.net发布资源文件不能被编译
- asp.net-mvc – 你用ReSharper做什么?
- asp.net – IIS 8.5单工作进程与Web Garden性能
- asp.net-mvc – FileContentResult和国际字符
- asp.net – 使用XML Schema和OpenXML SDK进行WordML模板化
- iis-7 – 经典ASP,在Windows Server 2008上发送电子邮件 –
- asp.net – 如何防止asp:Timer在生成响应之前发送tick?
- asp.net-mvc – 有没有办法为MVC控制器中的每个动作设置[Au
推荐文章
站长推荐
- vbscript – 计算字符串中有多少个特定字符
- asp.net – 第一次访问网站需要非常长的时间(总共
- asp.net – 如何添加ROW_NUMBER到LINQ查询或实体
- ASP.NET:公开Web用户控件的控件
- asp.net-mvc – ASP.net MVC DropDownList预选项
- asp.net-mvc – ASP.NET MVC模型验证错误本地化上
- asp.net-mvc-3 – ASP.NET MVC 3和Razor的ASHX处
- model-view-controller – 比较Dates DataAnnota
- asp.net – Dropzone没有绑定到模型
- 线程退出.Net MVC控制台中的消息
热点阅读