.NET 3.5的图表控制例外:错误执行的ChartImg.axd子请求图表、错误、NET、ChartImg

由网友(陪我到世界尽头)分享简介:任何人都收到此错误使用新的免费图表控件MS从登打士买的时候?Anyone getting this error when using the new free chart controls MS bought from Dundas?错误执行的ChartImg.axd子请求"Error executing chi...

任何人都收到此错误使用新的免费图表控件MS从登打士买的时候?

Anyone getting this error when using the new free chart controls MS bought from Dundas?

错误执行的ChartImg.axd子请求

"Error executing child request for ChartImg.axd"

在MSDN论坛上,他们认为这是我的web.config:  MSDN论坛帖子

On the MSDN forum they suggested it was my web.config: MSDN forum post

到目前为止,还没有固定的问题,但。任何其他的想法?

So far that hasn't fixed the problem though. Any other ideas?

推荐答案

我遇到同样的问题:该图表将努力在一个页面上,但不是下。原来如果图表是首次在POST(即回传)初始化错误被抛出,因为处理程序配置不正确。要解决该问题,修改用户LaptopHeaven提到了这个话题中加入POST谓词的HttpHandler的配置:

I encountered the same problem: the chart would work on one page but not on the next. Turns out if the chart is initialized for the first time in a POST (i.e. a postback) the error is thrown because the handler is configured incorrectly. To fix the issue modify the httpHandler configuration that user LaptopHeaven referred to in this topic by adding the POST verb:

<add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />

我已经写了,为什么这个错误在MSDN论坛后,斯科特安德森提到在开幕式这个话题后出现的更详尽的解释。

I've written a more thorough explanation of why this error occurs in the MSDN forum post that Scott Anderson referred to in his opening post of this topic.

阅读全文

相关推荐

最新文章