Chart Control

Discussion in 'ASP.NET / ASP.NET Core' started by jsonlee07, Jul 13, 2010.

  1. I briefly looked at the knowledge database but is there documentation for implementing the asp.net chart control. Runs fine locally but when I publish site to server I get the following error:

    Invalid temp directory in chart handler configuration [c:\TempImageFiles\].
     
  2. c:\TempImageFiles will be an inaccessible path on the server. You need to configure the temp path for chart images in your web.config e.g:
    <add key="ChartImageHandler" value="storage=file;timeout=20;Url=~/chartTmpImages/;"/>
     
  3. Thanks for pointing out my laziness and inability to find the obvious. hahaha.
    I should have noticed that. Thanks!
     
  4. Thanks CrystalCMS. Just one more thing I just find out. Don't forget to add the following parameter to your chart control: ImageStorageMode="UseImageLocation"

    otherwise you will get an error.

    Regards and thanks again
     

Share This Page