Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 08, 2012 06:35 AM by ujjwaladatta
Member
229 Points
59 Posts
May 08, 2012 04:59 AM|LINK
I had used Microsoft chart control and in my local server it is working fine but in thirdparty webserver i am getting below error,
How to overcome this error ??
The temp directory in chart handler configuration is not accessible [D:/webdata/abc.com/TempFiles]
Exception Details: System.UnauthorizedAccessException: The temp directory in chart handler configuration is not accessible
My code is: <handlers> <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </handlers> <httpHandlers> <add path="ChartImg.axd" verb="GET,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/> </httpHandlers> <appSettings> <add key="ChartImageHandler" value="Storage=file;Timeout=20;Url=~/TempFiles/;"/> </appSettings>
chart Datacontrols
May 08, 2012 06:35 AM|LINK
Eventhough the Write permission was given to TempFiles folder,Getting error.
Hence after R&D, came to conclusion that the Storage was used Memory and deleteAfterServicing=true attributes resolved the issue.
Solution:
<add key="ChartImageHandler" value="storage=memory;deleteAfterServicing=true;timeout=20;"/>
ujjwaladatta
Member
229 Points
59 Posts
System.UnauthorizedAccessException (Chart Control)
May 08, 2012 04:59 AM|LINK
I had used Microsoft chart control and in my local server it is working fine but in thirdparty webserver i am getting below error,
How to overcome this error ??
The temp directory in chart handler configuration is not accessible [D:/webdata/abc.com/TempFiles]
Exception Details: System.UnauthorizedAccessException: The temp directory in chart handler configuration is not accessible
chart Datacontrols
http://www.ujjwaladatta.wordpress.com
ujjwaladatta
Member
229 Points
59 Posts
Re: System.UnauthorizedAccessException (Chart Control)
May 08, 2012 06:35 AM|LINK
Eventhough the Write permission was given to TempFiles folder,Getting error.
Hence after R&D, came to conclusion that the Storage was used Memory and deleteAfterServicing=true attributes resolved the issue.
Solution:
<add key="ChartImageHandler" value="storage=memory;deleteAfterServicing=true;timeout=20;"/>
http://www.ujjwaladatta.wordpress.com