简体   繁体   English

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

[英]The Report Viewer Web Control HTTP Handler not registered in the application's web.config file

The Error: 错误:

The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. 报表查看器Web控件HTTP处理程序尚未在应用程序的web.config文件中注册。 Add to the system.web/httpHandlers section of the web.config file, or add to the system.webServer/handlers section for Internet Information Services 7 or later. 添加到web.config文件的system.web / httpHandlers部分,或添加到Internet Information Services 7或更高版本的system.webServer / handlers部分。

The Web config file : Web配置文件:

<system.web>
    <authentication mode="None" />
    <compilation debug="true" targetFramework="4.5.2" />
    <httpRuntime targetFramework="4.5.2" />
    <httpHandlers>
      <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" validate="false" />
    </httpHandlers>
</system.web>
<system.webServer>
    <modules>
      <remove name="FormsAuthentication" />
    </modules>
   <validation validateIntegratedModeConfiguration="false" />
   <handlers>
    <remove name="ReportViewerWebControlHandler"/>
      <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
    </handlers>
</system.webServer>

The config entries do exists, but the error is still thrown. 配置条目确实存在,但是仍然引发错误。

Just add this code in web.config 只需在web.config中添加此代码
You should ensure your version of Microsoft.Reporting.WebForms (Version=12.0.0.0) 您应该确保您的Microsoft.Reporting.WebForms版本(版本= 12.0.0.0)

find this section 找到本节

system.webServer validation validateIntegratedModeConfiguration="false" / handlers add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb=" " path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /* /handlers /system.webServer system.webServer 验证validateIntegratedModeConfiguration =“ false” / 处理程序 添加名称=“ ReportViewerWebControlHandler” preCondition =“ integratedMode”动词=“ ” path =“ Reserved.ReportViewerWebControl.axd” type =“ Microsoft.Reporting.WebForms.HttpHandler,Microsoft.ReportViewer。 WebForms,版本= 12.0.0.0,文化=中性,PublicKeyToken = 89845dcd8080cc91” / * / handlers /system.webServer

system.web compilation debug="true" assemblies add assembly="Microsoft.Build.Framework, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" / add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" / 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.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" / add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" / add assembly="Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" / add assembly="Microsoft.ReportViewer.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" / /assemblies system.web 编译debug =“ true” 程序集 add assembly =“ Microsoft.Build.Framework,Version = 3.5.0.0,Culture = neutral,PublicKeyToken = B03F5F7F11D50A3A” / add assembly =“ System.Management,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = B03F5F7F11D50A3A“ / 添加assembly =” System.Core,版本= 3.5.0.0,文化= neutral,PublicKeyToken = B77A5C561934E089“ / 添加assembly =” System.Web.Extensions,版本= 3.5.0.0,Culture = neutral ,PublicKeyToken = 31BF3856AD364E35“ / 添加assembly =” System.Xml.Linq,版本= 3.5.0.0,文化=中性,PublicKeyToken = B77A5C561934E089“ / 添加装配=” System.Data.DataSetExtensions,版本= 3.5.0.0,文化=中性,PublicKeyToken = B77A5C561934E089“ / 添加程序=” Microsoft.ReportViewer.WebForms,版本= 12.0.0.0,文化=中性,PublicKeyToken = 89845DCD8080CC91“ / 添加程序=” Microsoft.ReportViewer.Common,版本= 12.0.0.0,文化=中性,PublicKeyToken = 89845DCD8080CC91“ / /程序集

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 报告查看器 Web 控件 HTTP 处理程序尚未在应用程序的 web.config 文件中注册 - The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file 如何解决“报告查看器 Web 控件 HTTP 处理程序尚未在应用程序的 web.config 文件中注册” - How to resolve "The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file" 如何将Report Viewer tagPrefix添加到web.config - How to add Report Viewer tagPrefix to web.config 在NLB群集中修改应用程序的web.config文件 - Modifying an application's web.config file in NLB cluster DevExpress 组件需要在 web.config 文件中注册的 ASPxHttpHandlerModule - DevExpress components require ASPxHttpHandlerModule registered in the web.config file 在web.config处理程序映射中指定应用程序根目录 - Specify the application root in web.config handler mapping 如何配置web.config以支持文件处理程序 - How to configure web.config to support file handler 报告查看器控件(Web)显示空白报告 - Report Viewer Control (Web) Shows Blank Report 如何在web.config文件中注册自定义控件 - How to register custom control in web.config file ASP.NET - 在web.config文件中使用凭据进行登录控制 - ASP.NET - Login Control with Credentials in web.config file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM