Rabu, 28 Agustus 2013

Error ASP.Net : The Temp Directory in Chart Handler Configuration is Not Accessible

Error ASP.Net : The Temp Directory in Chart Handler Configuration is Not Accessible . If you build a web application with Chart control fo... thumbnail 1 summary
Error ASP.Net : The Temp Directory in Chart Handler Configuration is Not Accessible
Error ASP.Net : The Temp Directory in Chart Handler Configuration is Not Accessible. If you build a web application with Chart control for ASP.NET 4.0 and deploy the site to web server.  You might get following error on the live site:
The temp directory in chart handler configuration is not accessible
To resolve this, first go to web.config and find the ChartImage directory in appsettings.
 <appSettings>
<add key="ChartImageHandler" value="storage=file;timeout=20;" />
</appSettings>
The go to the temp chart image directory and grant read and write permission to IIS

Error ASP.Net : The Temp Directory in Chart Handler Configuration is Not Accessible
Stack Trace:
I manually added TempImageFiles folder under c:, but still get the same error.
An exception occurred: System.IO.DirectoryNotFoundException: Invalid temp directory in chart handler
configuration [c:\TempImageFiles]. at System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.Inspect() at
System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.ParseParams(String parameters) at
System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings..ctor(String parameters) at
System.Web.UI.DataVisualization.Charting.ChartHttpHandler.InitializeParameters() at
System.Web.UI.DataVisualization.Charting.ChartHttpHandler.EnsureInitialized(Boolean hardCheck) at
System.Web.UI.DataVisualization.Charting.Chart.GetImageStorageMode() at
System.Web.UI.DataVisualization.Charting.Chart.Render(HtmlTextWriter writer) at
ChartPart.ChartPartWebPart.Render(HtmlTextWriter writer)

Solve : make sure that you deployed and activated the MSCHartControls feature on your webapplication, then check the web apps web.config file so that the following line exists: 
From <add key="ChartImageHandler" value="storage=file;timeout=20;" />  
To <add key="ChartImageHandler" value="storage=memory;timeout=20;" />

Tidak ada komentar

Posting Komentar

Review diatas adalah kutipan dari website yang ada di internet dikemas menjadi informasi yang bermanfaat bagi kita semua. setiap post ada link sumber. Lengkapnya baca Disclaimer