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

http handler needed by the Report Viewer

2 Answers 509 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
chrisarauzv
Top achievements
Rank 1
chrisarauzv asked on 07 Nov 2007, 02:37 AM

Hello:
 I'm new using Telerik controls,  I find it very useful these controls, in addition to be easy to implement.

 I had no problems with the RAD Controls, but when I try the reporting everything worked well:
 making the report( I see both Preview and HTML Preview), connect to the database, creating the reportviewer in the aspx page.
 
But when I try to run the web site, all other pages worked fine, but the report does not work, I get the following message:

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

But Im ussing Netframework 2.0 for the application, so I put the handler in Handler Mapping In the application's config file, but nothing happened.

      <system.webServer>
         <handlers>
            <add name="TelerikReport" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler" resourceType="Unspecified" />
         </handlers>
      </system.webServer>

I search the entire Reporting Forum, with no luck. I put The dll files in the  bin directory. Any advice? I may be missing something? 

Thanx for your time.

P.D.
Im Using VS2005 in Vista Utimate.

2 Answers, 1 is accepted

Sort by
0
Chavdar
Telerik team
answered on 07 Nov 2007, 10:51 AM
Hi Chris,

There is a small glitch from our side in regards to where the ReportViewer should check for the http handler's registration. To solve the problem you should have the http handler's declaration in both web.config sections:

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>


Please, add the respective elements and let me know if there is still a problem.

All the best,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
chrisarauzv
Top achievements
Rank 1
answered on 08 Nov 2007, 01:11 AM
Hi Chavdar,

Everything works just fine, just as wanted, Thanks for your reply.

cheers
Tags
General Discussions
Asked by
chrisarauzv
Top achievements
Rank 1
Answers by
Chavdar
Telerik team
chrisarauzv
Top achievements
Rank 1
Share this question
or