Yazılım Mimarileri ve Tasarım Desenleri Üzerine

Asp.NET Chart Kontrolü “Invalid temp directory in chart handler configuration [c:\TempImageFiles\]” Hatası

Projenizde Chart nesnesiyle grafiksel işlemler gerçekleştiriyorsanız eğer bu projeyi Server’a attığınızda aşağıdaki hatayı alabilirsiniz.

“Invalid temp directory in chart handler configuration .
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 .”

Haliyle bu hatayı ortadan kaldırmak için Web.Config dosyasında bulunan bu kodu,

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

bu kodla

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

değiştiriniz.

Bu işlemleri yaptıktan sonra hatadan kurtulabilirsiniz.

Mobil sürümden çık