Hello I am getting this error when trying to display a page that contains a chart. I do not see an asp.net or IUSR_MACHINENAME account when granting permissions. Is it called something else in IIS 8 on Server 2012?
(this is my entery in the appsettings tag in the web.config for charthandler)
<add key="ChartImageHandler" value="storage=file;timeout=20;" />
Error:
The temp directory in chart handler configuration is not accessible [C:\Sites\SiteName\].
Exception Details: System.UnauthorizedAccessException: The temp directory in chart handler configuration is not accessible [C:\Sites\SiteName\].
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.
Thanks