Charts

Discussion in 'ASP.NET / ASP.NET Core' started by Bluegolden, May 20, 2011.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi Developers and Code Gurus

    I am using vs 2010 with .net4. I have charts that run perfect on the development server, but when posted to the host server there is an error regarding the temp directory used by the chart control. I have tried all of the following web configs - all failed
    <!--<add key="ChartImageHandler" value="storage=file;timeout=20;dir=/Temp/TempImageFiles/;" /> working on this machine to--> Failed

    <!--<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" /> old one that works on this machine--> Failed

    <add key="ChartImageHandler" value="storage=file;timeout=20;dir=e:\web\bluegoldenc\htdocs\tempimagefiles;" /> failed

    <!--<add key="ChartImageHandler" value="storage=file;timeout=20;dir=./Temp/TempImageFiles/;" /> working on this machine to--> Failed


    I have read this article "http://blog.discountasp.net/microsoft-releases-asp-net-charting-controls/" This blog has a link to a chart that is supposedly running on your server. Could someone look at where his temp file is pointed?

    I am three days late on my client demo and hoping to find someone who can provide an answer.

    Thanks
    Blue
     
  2. Use this:
    <add key="ChartImageHandler" value="storage=file;timeout=20;dir~/tempImages/;" />

    or

    <add key="ChartImageHandler" value="storage=file;timeout=20;dir~/TempImageFiles/;" />

    If you want it in tempimagefiles or whatever.
     
  3. Problem Solved

    Hi,

    Thanks for the support to-date. Ray in technical support gave me the missing puzzle piece. In order to run charts and point to a directory you must have full trust set.
    <system.web>
    <trust level="Full" /> ....

    </system.web>
     
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