Rad chart control giving exception

Thread is closed for posting
3 posts, 0 answers
  1. kiran
    kiran avatar
    4 posts
    Member since:
    Jun 2009

    Posted 16 Jun 2011 Link to this post

    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. kiran
    kiran avatar
    4 posts
    Member since:
    Jun 2009

    Posted 17 Jun 2011 Link to this post

    Is anybody there to help me?
  3. Bartholomeo Rocca
    Bartholomeo Rocca avatar
    247 posts
    Member since:
    May 2006

    Posted 20 Jun 2011 Link to this post

    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.
Back to Top