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

radchart chartimage.axd unavailable

6 Answers 246 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 14 Jul 2010, 03:48 PM
When going to a page with the radchart control on it, we're seeing this error:

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /performance/reports/ChartImage.axd


What can we do to fix this? Are we missing a config setting? It's important to note that right now the radchart control is in a user control which is on the page that is displaying the error.

Thanks for any help.

6 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 16 Jul 2010, 12:08 PM
Hello Jason,

Please, make sure you have registered the chart HttpHandler in both <system.web> and <system.webserver> sections in web.config. The former is needed for IIS 6, while the latter is needed for IIS7 and later. You can find this discussed in more details in this help topic.

I would recommend removing the registration of the chart HttpHandler for the web.config file and then using the link in the control smart tag from the Visual Studio designer.

In addition -- do you use an url rewriter? In this scenario you can use the RadChart.HttpHandlerUrl property to manually set the path of the ChartHttpHandler that is required for the correct operation of the chart control.

We would suggest you to set it from code behind like this and the chart should work as expected:
RadChart1.HttpHandlerUrl = ResolveUrl("ChartImage.axd")

Sincerely,
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
Jenny
Top achievements
Rank 1
answered on 16 Jul 2010, 09:41 PM
I have a similar problem in page routing in using RadChart of asp.net ajax 2009.1.402.35 inside asp.net MVC2 project. The chart works fine if I put the ChartTest1.aspx page directly under the project root folder. However, if I put a page "ChartTest2.aspx" in a folder (projectroot/ChartPages/ChartTest2.aspx), error happens (the resouce cannot be found...., and Requested URL:/ChartPages/ChartImage.axd). I think this is due to page routing issue. Can you show me how to resolve it?

0
Ves
Telerik team
answered on 20 Jul 2010, 01:35 PM
Hi Jenny,

Please, find a detailed description in this forum post.

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
Chuck
Top achievements
Rank 1
answered on 23 Jan 2013, 11:49 PM
Which is it?

Please, make sure you have registered the chart HttpHandler in both <system.web> and <system.webserver> sections in web.config. The former is needed for IIS 6, while the latter is needed for IIS7 and later. You can find this discussed in more details in this help topic.
 
I would recommend removing the registration of the chart HttpHandler for the web.config file and then using the link in the control smart tag from the Visual Studio designer.


Which of the above two are we supposed to do?  Add it to the handler sections or remove it?  I've tried it both ways and it doesn't work.  I've also tried the following, no go:

We would suggest you to set it from code behind like this and the chart should work as expected:
RadChart1.HttpHandlerUrl = ResolveUrl("ChartImage.axd")

Cannot find the following Requested Url:

 http://localhost:62452/ChartImage.axd?UseSession=false&ImageName=MmSgzc%2bosLqFARnSLr%2fCAatU4bzmDD7Fl2MbVkC5qZWzBQJ6UDad1aV%2fjxAuLjuLVHJ7ofVuscKGhvcODlCENQ%3d%3d&imageFormat=Png

I've set up the Temp directory in ~/Temp as the directory to use, and set UseSession to false.

0
Ves
Telerik team
answered on 28 Jan 2013, 01:37 PM
Hi Chuck,

Actually, these two options are not exclusive. The latter will ensure the former i.e. registering the ChartHttpHandler via the Visual Studio smart tag will provide you with correct entries in web.config. As for setting HttpHandlerUrl -- it comes in handy when you use url rewriter. Is this the case here?

In addition, please make sure ASP.NET process is granted with rights to write in the folder specified as TempImagesFolder.

Best regards,
Ves
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Jeny
Top achievements
Rank 1
answered on 02 May 2013, 11:30 AM
thanks that helped!!!
Tags
Chart (Obsolete)
Asked by
Jason
Top achievements
Rank 1
Answers by
Ves
Telerik team
Jenny
Top achievements
Rank 1
Chuck
Top achievements
Rank 1
Jeny
Top achievements
Rank 1
Share this question
or