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

ASP.NET: ReportViewer images are broken and misaligned

5 Answers 321 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andre Viens
Top achievements
Rank 1
Andre Viens asked on 24 Jan 2008, 09:59 PM
Hi,

I have never used the ReportViewer before. When I add the ReportViewer to my web application, it looks great and styled as it should in the design, but when I go to run my program, the images are all broken, and there is no styling of the bar. This is before I assign any report to the viewer.

Unfortunately, I have this project which is due in a very short time frame, and this is holding me up. I hope that someone may have a quick answer for me.

I am running Reporting Q3 2007 and Visual Studio 2008.

I tried my existing application that I am trying to get the ReportViewer to show up in and I created a brand new application with just the ReportViewer and I received the same result.

Any help anyone has would really be great. I may be forced to use Crystal Reports to finish my project otherwise. Thanks.

Andre

5 Answers, 1 is accepted

Sort by
0
Accepted
Chavdar
Telerik team
answered on 25 Jan 2008, 10:55 AM
Hello Andre,

The web report viewer uses a custom http handler to handle some of the reporting operations such as loading images, css files, javascript code, etc. It is usually registered in the <system.web> <httpModules>... section of the web.config file. In IIS 7 the http handler is required to be registered in <system.webServer> <modules> section.

To fix the problem, please, add the following entry to your web.config:


    <system.webServer>
        ....
        <handlers>
            ...         
            <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=2.0.1.0, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode,runtimeVersionv2.0" />
        </handlers>
        ...
    </system.webServer>

Hope this helps.

 
Sincerely yours,
Chavdar
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Andre Viens
Top achievements
Rank 1
answered on 29 Jan 2008, 05:53 PM
Thank you!
0
Kelly
Top achievements
Rank 1
answered on 16 Sep 2008, 03:17 PM
I am having the same problem but I am running VS 2005, .NET framework 2.0, and IIS 5.1. Any help would be greatly appreciated!

Thanks.
0
Steve
Telerik team
answered on 16 Sep 2008, 03:49 PM
Hello Kelly,

The only difference is that there is no name attribute in the handler and that this handler is added to the     <system.web> section (there is no <system.webServer> on IIS5.1).

Best wishes,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Travis Williams
Top achievements
Rank 2
answered on 09 Aug 2012, 06:33 PM
Been working this for a while now just thought I'd let anyone that might be experiencing the same know my solution.

Make sure the version numbers match in the http handlers and your project references.
Tags
General Discussions
Asked by
Andre Viens
Top achievements
Rank 1
Answers by
Chavdar
Telerik team
Andre Viens
Top achievements
Rank 1
Kelly
Top achievements
Rank 1
Steve
Telerik team
Travis Williams
Top achievements
Rank 2
Share this question
or