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

Rad chart control giving exception

2 Answers 56 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
kiran
Top achievements
Rank 1
kiran asked on 16 Jun 2011, 03:43 PM

HI,

I have used rad chart control in ascx control of sitefinity application.

For that i have added below code to the ascx control

<telerik:RadChart ID="RadChart2" runat="server">
    <Series>
        <telerik:ChartSeries>
            <Items>
                <telerik:ChartSeriesItem YValue="10" />
                <telerik:ChartSeriesItem YValue="15" />
            </Items>
        </telerik:ChartSeries>
    </Series>
</telerik:RadChart>

 

and added below tags to the web.config file.

Below are added to the controls of pages tag.

<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
<add tagPrefix="telerik" namespace="Telerik.Charting" assembly="Telerik.Web.UI"/>

 

And the below tag has been added to httpHandlers section of system.web.
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false"/>

 

And another tag has been added to handlers section of system.webserver

<add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>

 

But I am getting the following exception when accessing the corresponding page.

“Error loading RadChart image.You may also wish to check the ASP.NET Trace for further details.Display stack trace?”

I am using iis 7.5.Please suggest me how to solve this issue.

 

 Thanks
Kiran G.

 

2 Answers, 1 is accepted

Sort by
0
kiran
Top achievements
Rank 1
answered on 17 Jun 2011, 11:45 AM
Is anybody there to help me?
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 20 Jun 2011, 01:23 PM
Hello Kiran,

It is possible that there is an issue with the handler that processes the image of the chart control - ChartImage.axd, so you can try to explicitly add reference as shown in the code sample below
RadChart1.HttpHandlerUrl = ResolveUrl("ChartImage.axd");


Greetings,
Bart.
Tags
Chart (Obsolete)
Asked by
kiran
Top achievements
Rank 1
Answers by
kiran
Top achievements
Rank 1
Bartholomeo Rocca
Top achievements
Rank 1
Share this question
or