radchart chartimage.axd unavailable

Thread is closed for posting
7 posts, 0 answers
  1. Jason
    Jason avatar
    7 posts
    Member since:
    May 2009

    Posted 14 Jul 2010 Link to this post

    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.
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 16 Jul 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jenny
    Jenny avatar
    6 posts
    Member since:
    Feb 2008

    Posted 16 Jul 2010 Link to this post

    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?

  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 20 Jul 2010 Link to this post

    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
  6. Chuck
    Chuck avatar
    9 posts
    Member since:
    Jan 2013

    Posted 23 Jan 2013 Link to this post

    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.

  7. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 28 Jan 2013 Link to this post

    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.
  8. Jeny
    Jeny avatar
    1 posts
    Member since:
    May 2013

    Posted 02 May 2013 Link to this post

    thanks that helped!!!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017