开发者

Where should temp files created by the MS Chart control go?

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜