Click here to Skip to main content
15,891,844 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when I Publish a project that uses an asp.net charts
I have error on server (it works fine on localhost BTW)
this is the error
XML
<pre>internal server error
the requested page cannot be accessed because the related configuration data for the page is invalid<


Config Error: This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".


What I have tried:

I have tried to add this
C#
<validation validateIntegratedModeConfiguration="false" />

in webconfig
and change this
XML
<pre><add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />

to this
XML
<pre><add key="ChartImageHandler" value="storage=memory;timeout=20;" />
Posted
Updated 21-Feb-17 10:33am
Comments
ZurdoDev 21-Feb-17 15:02pm    
You probably have a web.config file in a folder that is not marked as an application in IIS.
Heba Kamel 21-Feb-17 15:14pm    
no, it works fine if I delete charts configuration from web.config file

1 solution

Will this help if you change this line
HTML
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />

TO
HTML
<add key="ChartImageHandler" value="storage=memory;deleteAfterServicing=true;" />


The reason I recommend that changes because, I'm using that chart control also in one of my article.

ASP.NET AJAX MultiHandleSliderExtender - Slide by Year and Month[^]

Here is the working example using the recommend setting:
ASP.NET MultiHandleSliderExtender - Slide by Year and Month[^]
 
Share this answer
 
v3
Comments
Karthik_Mahalingam 21-Feb-17 23:24pm    
5
Bryian Tan 21-Feb-17 23:34pm    
Thank you!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900