使用ASP.NET图表发布项目时出错 [英] Error when publish a project with ASP.NET charts

查看:71
本文介绍了使用ASP.NET图表发布项目时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我发布使用 asp.net图表的项目时

我在服务器上有错误(在localhost BTW上工作正常)

这是错误

 <   pre  > 内部服务器错误
无法访问请求的页面,因为页面的相关配置数据无效<





配置错误:此配置部分不能在此路径中使用。当该部分被锁定在父级别时会发生这种情况。默认情况下锁定(overrideModeDefault =Deny),或由locationMode =Deny或遗留allowOverride =false的位置标记显式设置。





我尝试了什么:



我试图添加这个

< validation validateIntegratedModeConfiguration =   false /> 



in webconfig

并更改此

 <   pre  >  <   add     key   =  ChartImageHandler    value   =  storage = file; timeout = 20; dir = c:\TempImageFiles \;    /  >  



到此

 <   pre  >  <   add     key   =  ChartImageHandler    value   = 存储= memory; timeout = 20;    /  >  

解决方案

如果你更改这一行,这会有帮助

< add key = ChartImageHandler < span class =code-attribute> value = storage = file; timeout = 20; dir = c:\TempImageFiles \; / >



TO

 <   add    < span class =code-attribute> key   =  ChartImageHandler    value   =  storage = memory; deleteAfterServicing = true;    /  >  





我建议更改的原因是因为我正在使用该图表控制也在我的一篇文章中。



ASP.NET AJAX MultiHandleSliderExtender - 按年和月滑动 [ ^ ]



这是使用推荐设置的工作示例:

ASP.NET MultiHandleSliderExtender - 按年和月滑动 [ ^ ]

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

<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

<validation validateIntegratedModeConfiguration="false" />


in webconfig
and change this

<pre><add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />


to this

<pre><add key="ChartImageHandler" value="storage=memory;timeout=20;" />

解决方案

Will this help if you change this line

<add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" />


TO

<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[^]


这篇关于使用ASP.NET图表发布项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆