.NET Framework Developer Center > .NET Development Forums > Chart Controls for .NET Framework > error: Invalid temp directory in chart handler configuration [c:\TempImageFiles\]
Ask a questionAsk a question
 

Answererror: Invalid temp directory in chart handler configuration [c:\TempImageFiles\]

  • Monday, December 29, 2008 10:03 PMSirn Tran Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    My charts are run fine in my XP VS2008 environment.  But when I deploy to the Window 2003 server, it gave me an error: 

    Invalid temp directory in chart handler configuration [c:\TempImageFiles\].



    We already installed .net 3.5 SP1 and the new charts controls on the server.  Is there anything else we need to set?

    Many thanks


    Learning Sharepoint

Answers

  • Tuesday, December 30, 2008 5:29 PMSirn Tran Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I found a solution in this forum.  I changed the web config as:

    From   
    <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />

    To
     <add key="ChartImageHandler" value="storage=file;timeout=20;" />


    then it work on the IIS server. 

    Many thanks for all of the help.

    Learning Sharepoint
    • Marked As Answer bySirn Tran Tuesday, December 30, 2008 5:29 PM
    •  

All Replies

  • Tuesday, December 30, 2008 1:52 AMMatt E GreerMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Are you certain your asp.net account can write to that directory? Do you get an exception if you add this to your Page_Load handler?

    File.CreateText(@"C:\TempImageFiles\test.txt");


    http://blogs.msdn.com/magreer
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Tuesday, December 30, 2008 5:29 PMSirn Tran Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    I found a solution in this forum.  I changed the web config as:

    From   
    <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />

    To
     <add key="ChartImageHandler" value="storage=file;timeout=20;" />


    then it work on the IIS server. 

    Many thanks for all of the help.

    Learning Sharepoint
    • Marked As Answer bySirn Tran Tuesday, December 30, 2008 5:29 PM
    •  
  • Monday, November 02, 2009 6:44 PMquadrabyte Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    thanks for the fix Sirn. works great for me.