vijay

welcome Netizen

Share Your Knowledge.It is a way to achieve immortality

Friday, December 30, 2011

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


Hi..

Recently I used chart control in one of my project.when local its working perfectly.when I move to server it shows an error messageas show below…..

Invalid temp directory in chart handler configuration [c:\TempImageFiles\].
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.DirectoryNotFoundException: Invalid temp directory in chart handler configuration [c:\TempImageFiles\].

Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below

To Resolve:

Then I replaced a particular line line in web.config file..
From this:
  <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />

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

Then the error will be resolved……..
I hope you find something useful.. 

0 comments:

Post a Comment