This is a migrated thread and some comments may be shown as answers.

Add Telerik.ReportViewer.WebForms.HttpHandler system.web/httpHandlers section configuration file

2 Answers 498 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
WombatEd
Top achievements
Rank 1
WombatEd asked on 10 Jan 2011, 10:35 PM

I'm trying to implement my first ReportViewer, and I'm getting this error:

Server Error in '/' Application.
--------------------------------------------------------------------------------
  
The http handler needed by the Report Viewer has not been registered in the application's web.config file.  Add <add verb="*" path="Telerik.ReportViewer.axd" type = "Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> to the system.web/httpHandlers section of the configuration file. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
Exception Details: Telerik.ReportViewer.WebForms.ReportViewerHandlerNotRegisteredException: The http handler needed by the Report Viewer has not been registered in the application's web.config file.  Add <add verb="*" path="Telerik.ReportViewer.axd" type = "Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> to the system.web/httpHandlers section of the configuration file.
  
Source Error: 
  
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
  
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
  
  <%@ Page Language="C#" Debug="true" %>
  
or:
  
2) Add the following section to the configuration file of your application:
  
<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>
  
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
  
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.  
  
Stack Trace: 
  
  
[ReportViewerHandlerNotRegisteredException: The http handler needed by the Report Viewer has not been registered in the application's web.config file.  Add <add verb="*" path="Telerik.ReportViewer.axd" type = "Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" /> to the system.web/httpHandlers section of the configuration file.]
   Telerik.ReportViewer.WebForms.ReportViewer.CheckHttpHandlerRegistrations() +207
   Telerik.ReportViewer.WebForms.ReportViewer.OnInit(EventArgs e) +62
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6741
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
   System.Web.UI.Page.ProcessRequest() +80
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.myplannerreport_aspx.ProcessRequest(HttpContext context) +37
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
  
   
  
  
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618

But I have this in my Web.Config:
<system.webServer>
        <handlers>
        <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
        <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
        <remove name="Telerik_Web_UI_DialogHandler_aspx" />
        <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
        <remove name="Telerik_RadUploadProgressHandler_ashx" />
        <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
        <remove name="Telerik_Web_UI_WebResource_axd" />
        <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
        <remove name="Telerik_ReportViewer_axd"/>
        <remove name="Telerik.ReportViewer.axd_"/>
        <add name="Telerik.ReportViewer.axd_*"
                 path="Telerik.ReportViewer.axd"
                 verb="*"
                 type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=4.2.10.1221, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"
                 preCondition="integratedMode,runtimeVersionv2.0" />
    </handlers>

Any ideas?

2 Answers, 1 is accepted

Sort by
0
WombatEd
Top achievements
Rank 1
answered on 10 Jan 2011, 10:49 PM
My mistake: I hand coded the <ReportViewer> into my markup, in "Source" mode, instead of dragging it, in "Design" mode, from the ToolBox onto my form.
0
Rakesh
Top achievements
Rank 1
answered on 05 Feb 2014, 07:57 AM
Simple Solution for the Telerik Glitch in Decalration 1.  system.web:

  <system.web>
        <httpHandlers>
            <add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=1.5.1.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
        </httpHandlers>
    ....
   </system.web>

and 2. system.webServer: 

    <system.webServer>
            <handlers>
                <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*"                    type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=1.5.1.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode,runtimeVersionv2.0"/>
        </handlers>
        <validation validateIntegratedModeConfiguration="false"/>
    </system.webServer>
Tags
General Discussions
Asked by
WombatEd
Top achievements
Rank 1
Answers by
WombatEd
Top achievements
Rank 1
Rakesh
Top achievements
Rank 1
Share this question
or