Rabu, 28 Agustus 2013

Error ASP.Net : Invalid Temp Directory in Chart Handler Configuration [c:\TempImageFiles\]

Error ASP.Net : Invalid Temp Directory in Chart Handler Configuration [c:\TempImageFiles\] . Saya ingin menampilkan grafik atau chart gamb... thumbnail 1 summary
Error ASP.Net : Invalid Temp Directory in Chart Handler Configuration [c:\TempImageFiles\]
Error ASP.Net : Invalid Temp Directory in Chart Handler Configuration [c:\TempImageFiles\]. Saya ingin menampilkan grafik atau chart gambar/ image memakai programming ASP.net namun mengalami masalah error di website. Lalu saya mencari referensi ke beberapa internet. Silakan diterapkan dan dicoba semoga dapat membantu.

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.

Stack Trace:
[DirectoryNotFoundException: Invalid temp directory in chart handler configuration [c:\TempImageFiles\].]
System.Web.UI.DataVisualization.Charting.ChartHttp HandlerSettings.Inspect() +737
System.Web.UI.DataVisualization.Charting.ChartHttp HandlerSettings.ParseParams(String parameters) +456
System.Web.UI.DataVisualization.Charting.ChartHttp HandlerSettings..ctor(String parameters) +307
System.Web.UI.DataVisualization.Charting.ChartHttp Handler.InitializeParameters() +110
System.Web.UI.DataVisualization.Charting.ChartHttp Handler.EnsureInitialized(Boolean hardCheck) +243
System.Web.UI.DataVisualization.Charting.Chart.Get ImageStorageMode() +25
System.Web.UI.DataVisualization.Charting.Chart.Ren der(HtmlTextWriter writer) +125
System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +19
System.Web.UI.HtmlControls.HtmlForm.RenderChildren (HtmlTextWriter writer) +163
System.Web.UI.HtmlControls.HtmlContainerControl.Re nder(HtmlTextWriter writer) +32
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTex tWriter output) +51
System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.HtmlControls.HtmlForm.RenderControl( HtmlTextWriter writer) +40
System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +19
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053 

You can add an entry to the <appSettings> section of your web.config file that looks like this:

<add key="ChartImageHandler" value="storage=file;timeout=20;dir=d:\Temp\ImageFiles\;"/>

Then set the dir= value to whatever folder you want on your server.
Be sure the folder exists. The app will not create it, if it is not there; it will just error out.
From   
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />

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

di web config file cek pathnya sudah benar atau belum
<add name="ChartImg" verb="*" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler,System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"  />
<add name="ReportViewer" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler,Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

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