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

Issue While Loading RadChart Image

6 Answers 199 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Meenakshi Nagalingam
Top achievements
Rank 1
Meenakshi Nagalingam asked on 21 Jul 2010, 07:47 AM
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.

6 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 23 Jul 2010, 10:27 AM
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
0
Meenakshi Nagalingam
Top achievements
Rank 1
answered on 23 Jul 2010, 01:01 PM
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!!!

0
Rob
Top achievements
Rank 1
answered on 26 Jul 2010, 03:01 AM
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.
0
Velin
Telerik team
answered on 28 Jul 2010, 03:26 PM
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
0
Meenakshi Nagalingam
Top achievements
Rank 1
answered on 02 Aug 2010, 11:42 AM
Hi,

Thanks for your response.

No its not common to that case. We have issue in both in development environment and deployment environment.
0
Giuseppe
Telerik team
answered on 05 Aug 2010, 03:07 PM
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
Tags
Chart (Obsolete)
Asked by
Meenakshi Nagalingam
Top achievements
Rank 1
Answers by
Ves
Telerik team
Meenakshi Nagalingam
Top achievements
Rank 1
Rob
Top achievements
Rank 1
Velin
Telerik team
Giuseppe
Telerik team
Share this question
or