PDA

View Full Version : .NET Chart controls from MS, how do i set the temp directory?


Rahul.Dhingra
05-21-2009, 02:33 AM
I get the following error on the pages which use the chart controls:

<Message>Invalid temp directory in chart handler configuration [~\ChartImages\].</Message>


I have already uploaded teh System.Web.Visualization dll to the bin folder, and that is configured correctly else my application wouldnt load due to a config error.

I have the following configuration added to the web.config
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=ChartImages/;" />

What i really want to know is what the value of the dir variable should be in case of hosting it on a shared server with discountasp.net

CrystalCMS
05-21-2009, 08:06 AM
Here's mine:
<appSettings>
<add key="ChartImageHandler" value="storage=file;timeout=20;Url=~/chartTmpImages/;"/>
</appSettings>

That's working fine here on my discountASP.NET hosted web application. It looks to me like you need to be using Url= instead of dir=

bruce
05-21-2009, 10:23 AM
also see this blog post

http://discountaspnet.spaces.live.com/blog/cns!FC24ECAD565F3E2C!229.entry

Rahul.Dhingra
05-22-2009, 01:31 AM
Here's mine:
<appSettings>
<add key="ChartImageHandler" value="storage=file;timeout=20;Url=~/chartTmpImages/;"/>
</appSettings>

That's working fine here on my discountASP.NET hosted web application. It looks to me like you need to be using Url= instead of dir=


Been looking for a solution for a while, thank you it works brilliant.

CrystalCMS
05-24-2009, 02:54 PM
Been looking for a solution for a while, thank you it works brilliant.

Coolio ;)