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.The go to the temp chart image directory and grant read and write permission to IIS<appSettings>
<add key="ChartImageHandler" value="storage=file;timeout=20;" />
</appSettings>
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;" />
[source]
Tidak ada komentar
Posting Komentar