The default location:
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />
is fine for development, but not so good for deploying on IIS. I found a forum post that mentioned you could drop the path altogether, which dumps the temp file(s) directly in the root of my project
<add key="ChartImageHandler" value="storage=file;timeout=20;" />
I don't want to clutter up my root folder though, so I am settling on this for now:
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/App_Data/ChartImageTemp/;" />
Thoughts or what are other people doing? I'm a little curious as to why this is even a configurable option. I am using .net 3.5, maybe this is different in 4.0?
A related question:
MSChart: ChartImageHandler pros/cons of the different storage settings
Pointed me to an article by Scott Mitchell:
https://web.archive.org/web/20201205231110/https://www.4guysfromrolla.com/articles/081909-1.aspx
I've decided to use the "memory" option, so no files or paths to configure:
<appSettings>
<add key="ChartImageHandler" value="storage=memory;deleteAfterServicing=true;"/>
</appSettings>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With