Server Error in '/maritimeheritageapp' Application.

The temp directory in chart handler configuration is not accessible [D:\Inetpub\wwwroot\maritimeheritageapp\].

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.UnauthorizedAccessException: The temp directory in chart handler configuration is not accessible [D:\Inetpub\wwwroot\maritimeheritageapp\].

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

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:


[UnauthorizedAccessException: The temp directory in chart handler configuration is not accessible [D:\Inetpub\wwwroot\maritimeheritageapp\].]
   System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.Inspect() +724
   System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.ParseParams(String parameters) +470
   System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings..ctor(String parameters) +31
   System.Web.UI.DataVisualization.Charting.ChartHttpHandler.InitializeParameters() +127
   System.Web.UI.DataVisualization.Charting.ChartHttpHandler.get_Settings() +51
   System.Web.UI.DataVisualization.Charting.ChartHttpHandler.InitializeControllerFile() +40
   System.Web.UI.DataVisualization.Charting.ChartHttpHandler.EnsureInitialized(Boolean hardCheck) +320
   System.Web.UI.DataVisualization.Charting.ChartHttpHandler.EnsureInstalled() +15
   System.Web.UI.DataVisualization.Charting.Chart.GetImageStorageMode() +25
   System.Web.UI.DataVisualization.Charting.Chart.get_CurrentImageLocation() +39
   System.Web.UI.DataVisualization.Charting.Chart.Render(HtmlTextWriter writer) +298
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +132
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +253
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +132
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +253
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +208
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +47
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +132
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +253
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +132
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +253
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +132
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +9490


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4654.0