Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Chart > Error Loading RadChart Image...
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Error Loading RadChart Image...

Feed from this thread
  • Ajit avatar

    Posted on Nov 20, 2007 (permalink)

    Today i am using RadChart in my project which will produce the below error message.

    Error Loading RadChart Image.
    You may also wish to check the ASP.NET Trace for futher detail.

    and URL chnage to

    https://localhost/RadControls/Chart/Image.aspx?UseSession=true&ChartID=7aa573d7-d131-4fc7-8760-4a3a61f3e530_chart_ctl00$cphBaseContent$ChartCasesStatus&imageFormat=Png&random=0.98534633684221

    Please Help me.

    Thanks,
    Ajit Bhatt. 

  • Steve Steve admin's avatar

    Posted on Nov 20, 2007 (permalink)

    Hi Ajit,

    There are various things that could lead to this problem. Please review the following article that will help you resolve the issue.

    All the best,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • Ajit avatar

    Posted on Nov 20, 2007 (permalink)

    Hi Steve,

        Thanks for Quick answer, but still i am having the same problem.

        let me tell what i am using in my project.

        we are using your Editor,Spell check, Calender and lastly we are using Chart Control.

        Please give detail information to resolve this issue. that given link not sufficient to me.

    Thanks,
    Ajit

  • Steve Steve admin's avatar

    Posted on Nov 20, 2007 (permalink)

    Hi Ajit,

    We are not aware of any interoperability issues between the RadControls you use in your project, and in fact all of our controls are tested for such issues before release. Are you by any chance using this project in webfarms setup? If so you should make sure that the session state is either StateServer or SQLServer. If this is not so, the chart image can be generated on one server and the image request served by another. If the Session is not common for all servers, the chart image will be lost. If the later is not the case, please open a support ticket and provide us with a sample project we could look into and we will get back to you with more info.

    Kind regards,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • Ajit avatar

    Posted on Nov 21, 2007 (permalink)

    Hi Steve,

    We are using the rad chart in the pop window and error arise when the session in the site end while the rad chart is displaying the image . The error is display as follows "Error Loading the Rad Chart image.You may also wish to check the asp.net trace for the further details". We are uable to replicate the error in the local machine . I want to suppress this error on server side or client side because any case the current request which is proccessed need to stopped. Can you throw some light in ways which i can do this.


    Regards
    Ajit Bhat

  • Steve Steve admin's avatar

    Posted on Nov 21, 2007 (permalink)

    Hi Ajit,

    Can you try setting UseSession=false and set the TempFolder property to a folder where the ASP.NET process has read/write rights? Give this a spin and let us know if the problem still persists. Also note that when using session the sessionState should be  cookieless="false", otherwise it would not work.

    Greetings,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • glen avatar

    Posted on Dec 5, 2007 (permalink)

    What is the default folder that the process needs read/write access to (i.e. what is the default value if the TempImageFolder property is not specified), and what does the UseSession property actually do?

  • Steve Steve admin's avatar

    Posted on Dec 6, 2007 (permalink)

    Hello glen oliff,

    There is no default folder - you should specify such from the TempImageFolder property. When UseSession is false the chart image will be streamed through a file which will be temporarily written in the folder specified by the TempImageFolder. The file will be automatically deleted after a couple of minutes.

    All the best,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • glen avatar

    Posted on Dec 6, 2007 (permalink)

    What happens if UseSession is set to true?

  • Steve Steve admin's avatar

    Posted on Dec 7, 2007 (permalink)

    Hi glen oliff,

    If UseSession is true (default value), the chart is being streamed through the session. If you are using  the chart in a web farm, you should make sure that the session state is either StateServer or SQLServer. If this is not so, the chart image can be generated on one server and the image request served by another. If the Session is not common for all servers, the chart image will be lost.

    Kind regards,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • Joseph avatar

    Posted on Mar 12, 2008 (permalink)

    I have the same problem.  However, in .NET 2.0, there is no UseSession in web.config.  How can I fix this problem?

    Thanks,

  • Steve Steve admin's avatar

    Posted on Mar 13, 2008 (permalink)

    Hi Joseph,

    UseSession is property of the chart control and not a framework one.

    Kind regards,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • Bobbie Ferguson avatar

    Posted on Mar 24, 2008 (permalink)

    I have tried this fix and the error has gotten worse.

    Originally, my app was using the sessionState (and cookieless=false or true), and it would occasionally produce the "Error Loading RadChart" error. But, when using UseSession = false and setting a tempImageFolder with ASPNET read/write access (and cookieless=true or false), I'm getting the error everytime.

    The images are being produced correctly in the temp folder, but they are not being displayed on the webpage

  • Steve Steve admin's avatar

    Posted on Mar 25, 2008 (permalink)

    Hello Bobbie,

    Can you provide us with more info on your scenario:
    • what is your server set-up? Do you use webfarms or webgardens?
    • what version of the chart control are you using
    • how do you create your chart?
    Any additional information would be highly appreciated.
    Sincerely yours,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • Dan avatar

    Posted on May 7, 2008 (permalink)

    Hi Steve,
    I am also having a problem with the RadChart: "Error loading RadChart Image."
    I have my sessionState setup as follows in my web.config:
    <sessionState timeout="60" mode="InProc" cookieless="UseUri"/>

    The reason I have it like that is so that my app will work in multi-tab browsers. I need to have a different sessionId for each instance of my app. I removed the entry above from my web.config and the chart was displayed successfully, but I need to leave this in my web.config so is there a way that I can get the RadChart to work without modifying my sessionState?
    Thanks,
    Dan

  • Giuseppe Giuseppe admin's avatar

    Posted on May 7, 2008 (permalink)

    Hello Dan,

    If you are using the latest version of the control (RadChart v4.13), you should have no problems using cookieless sessionState as described.

    Hope this helps.


    Regards,
    Manuel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • Dan avatar

    Posted on May 7, 2008 (permalink)

    Hi Manuel,
    I am using RadChart v3.1. Does it mean I need to upgrade to v4.13 if I want to use cookieless sessionState?
    Thanks,
    Dan

  • Giuseppe Giuseppe admin's avatar

    Posted on May 7, 2008 (permalink)

    Hi Dan,

    Indeed your assumption is correct -- previous versions of the control had problem with cookieless sessionState that was fixed in the recent versions of RadChart. You can find the changes and backwards compatibility guide here, should you decide to upgrade your application.


    Regards,
    Manuel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  • Himadri avatar

    Posted on Aug 20, 2008 (permalink)





  • Jeff Wardwell avatar

    Posted on Oct 24, 2008 (permalink)

    Can you please fix the link in the second post?  I'm hoping it will shed some light on my problem.

  • Giuseppe Giuseppe admin's avatar

    Posted on Oct 27, 2008 (permalink)

    Hi Jeff Wardwell,

    The link in the second post is not relevant any more (it references an outdated version of the chart control and thus is no longer valid). We believe this forum post here would solve your problem.

    Hope this helps.


    Greetings,
    Manuel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  • BB Agrawal avatar

    Posted on Sep 9, 2009 (permalink)

    Hi There,
    I have licensed telerik controls (Telerik.Web.UI version 2009.1.527.20). I have prepared StackedBar100 chart according to my need. Its working fine when I run this on my development server. But when I deploy this to my testing server then its giving me the following error:
        Error loading RadChart image.
        You may also wish to check the ASP.NET Trace for further details.
        Display stack trace?
    Even If I debug my code on the testing server then again it works fine. I am unable to find what is the exact problem. Earlier I thought there is some missing DLL on the testing server but when I debug it works absolutely fine. It means eveything is there on the server, I searched your forum also but it couldn't help me.

    Please resolve my issue ASAP.


    Just to let you know that I am using Visual Studio 2008 using WCF (.Net Framework Version 3.5) with SQL Server 2008.

  • Ves Ves admin's avatar

    Posted on Sep 11, 2009 (permalink)

    Hello BB Agrawal,

    The reason for this error is in missing or wrong chart http handler registration. Please, verify that it the handler is registered correctly. Note, that for IIS 7 the registration should be placed in system.webServer and not in system.web section in web config. Please, find more details in this help topic, as well as in the forum post linked by Manuel.

    Sincerely,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

  • arturo paniagua avatar

    Posted on Jan 15, 2010 (permalink)

    Hello , i have the same problem but, can you tell me how do i can change de name of the image  i change the name od the folder whit the prorety :

    TempImagesFolder
    but i need to rename the image.
    Tahnks

  • Ves Ves admin's avatar

    Posted on Jan 20, 2010 (permalink)

    Hello Arturo,

    You cannot control the chart image name -- it contains a GUID and it is generated by the chart control. Still, if you need to reuse the image later, you can call the RadChart.Save method to export the chart to an image file.

    Best regards,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

  • arturo paniagua avatar

    Posted on Jan 20, 2010 (permalink)

    Yes, i did that and then i change the name of the file with File.Move.

    Thank's anyway

  • isha avatar

    Posted on Oct 27, 2010 (permalink)

    Helo sir,
    I am having a problem on server "error loading radchart image",and have done with ur given solutions but they are not helpful,
    Do reply
    Thanks

  • Jasmeet avatar

    Posted on Mar 21, 2011 (permalink)

    sorry for asking such a basic question but where do I set the usesession to false?
    Im looking in the web.config file. Am I anywhere close?


    OK, my issue was solved by adding a username and password into the identity tag in the web config file.. need to create a user to only have access to this folder. It was previously blank.

    Jas

  • Posted on Mar 25, 2011 (permalink)

    Try this, it worked for me and is quite a simple fix.  I am running IIS7/Server 2008 so your experience may vary. 

    In IIS, expand the web server and select the application in question with the chart control.  On the right hand side select "Basic Settings".  Next to "Application Pool" click Select then choose "Classic .Net AppPool".  Click OK.  Error gone.

  • Soma avatar

    Posted on Jun 28, 2011 (permalink)

    Thank you...this is the best solution. I had problem..I changed the App Pool to Clasic option.
    it is working now.

    Thanks
    Soma

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Chart > Error Loading RadChart Image...