Issue While Loading RadChart Image

Thread is closed for posting
7 posts, 0 answers
  1. Meenakshi Nagalingam
    Meenakshi Nagalingam avatar
    53 posts
    Member since:
    Aug 2009

    Posted 21 Jul 2010 Link to this post

    Hi,

    I am using Rad Controls of version 2009.2.701.35. I need to load a series of Rad Charts dynamically. The no.of charts are also dynamic. While loading the charts am getting the following error, for few charts:

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


    A red X mark is displayed in place of those charts.
    Am able to see other charts(Like, out of 10 charts am able to see 8 or 7 charts). This error message is not consistent for a particular chart always. For a same set of records one time am getting error on 5th and 9th charts, and if I load the same page again, am getting error in different chars,(like 2nd and 4th).

    I read through many forums related to this issue. I tried various options but they are not working out for me.

    I tried adding, 
    <add name="ChartHandler" path="ChartImage.axd" verb="*"
    type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI" />
    in my system.webServer section in web.config.

    As per forum I also tried adding, 
    <add name="ChartImage_axd" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" /> 

    I tried setting the, 
    RadChart rChart = new RadChart();
    rChart.HttpHandlerUrl = ResolveUrl("ChartImage.axd"); from my code behind.

    Am testing this in my local development environment (Visual Studio 2008). Am getting the same error in development as well as deployed location.

    If anyone have solution for this, Please help me out!!!
    Thanks.
  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 23 Jul 2010 Link to this post

    Hi Meenakshi Nagalingam,

    This error means that the chart image cannot be served correctly. Sometimes the reason is in incorrect chart http handler registration. The HttpHandler registration differs for different versions of IIS, this is discussed in more details in this help topic. However, some of the charts appear, so it seems this might not be the reason in this case.

    Still, I am a bit puzzled - does the page behave in the same way in your dev environment and when deployed? Showing only some of the images usually happens in web farm environment -- the explanation here is this: the page is served by one machine, which generates the chart image and puts it into the Session. Then the request for the image is served by another machine and it cannot find the image - hence the error message.

    The solution for web farm environment would be to implement State server or SQL server session state mode or sticky sessions, ensuring that all the request from one user will be handled by the same server.

    Best regards,
    Ves
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Meenakshi Nagalingam
    Meenakshi Nagalingam avatar
    53 posts
    Member since:
    Aug 2009

    Posted 23 Jul 2010 Link to this post

    Hi,

    Thanks for your response.

    For "does the page behave in the same way in your dev environment and when deployed?" Page behaves in the same way both in dev and deployed environment. But the thing is, am getting error for different chart items everytime. For eg, if i get error in 5th chart once, and when I refresh the same page, am getting error in 3rd and 8th chart..etc like that.
    The error on no.of charts are also random. Sometimes am getting error for 2 charts sometimes am getting error for 5 charts..etc.

    I couldnt find the route cause for this. I tried some options (which I mentioned earlier) after reading through the forums. But nothing works for me.

    Am getting the same error message when I debug my solution using Visual Studio as well as am getting it in my deployed location also.

    Pls help me out!!!

  4. Rob
    Rob avatar
    44 posts
    Member since:
    Apr 2008

    Posted 25 Jul 2010 Link to this post

    Hi

    As I mentioned in my thread, which didn't warrant a response - I have suddenly started getting the same issue, but only on my development box.
    The config has not changed, the page has not changed, so no idea why this would happen.
  5. Velin
    Admin
    Velin avatar
    391 posts

    Posted 28 Jul 2010 Link to this post

    Hello Meenakshi Nagalingam,

    Is it possible that the issues you experience have something in common with this?

    Sincerely yours,
    Velin
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Meenakshi Nagalingam
    Meenakshi Nagalingam avatar
    53 posts
    Member since:
    Aug 2009

    Posted 02 Aug 2010 Link to this post

    Hi,

    Thanks for your response.

    No its not common to that case. We have issue in both in development environment and deployment environment.
  7. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 05 Aug 2010 Link to this post

    Hi Meenakshi Nagalingam,

    Could you confirm whether your project is deployed in a webfarm environment or not as the symptoms you are experiencing resemble very much this scenario (my colleague Ves already posted the solution in his previous reply). Also, do you have some sort of url rewriting enabled for this project?

    If the problem persists, we would suggest you to open a formal support ticket and send us a runnable sample application that we could investigate locally.


    Kind regards,
    Freddie
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top