.NET Chart controls from MS, how do i set the temp directory?

Discussion in 'ASP.NET / ASP.NET Core' started by Rahul.Dhingra, May 21, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. 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
     
  2. 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=
     
  3. Bruce

    Bruce DiscountASP.NET Staff

  4. Thanks a ton!!


    Been looking for a solution for a while, thank you it works brilliant.
     
  5. Coolio ;)
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page