.NET 3.5 图表控件异常:执行 ChartImg.axd 的子请求时出错 [英] .NET 3.5 chart controls exception: Error executing child request for ChartImg.axd

查看:28
本文介绍了.NET 3.5 图表控件异常:执行 ChartImg.axd 的子请求时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人在使用从 Dundas 购买的新免费图表控件 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(即回发)中首次初始化,则会由于处理程序配置不正确而引发错误.要解决此问题,请通过添加 POST 动词来修改用户 LaptopHeaven 在本主题中引用的 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" />

我在 Scott Anderson 在本主题的开篇文章中提到的 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.

这篇关于.NET 3.5 图表控件异常:执行 ChartImg.axd 的子请求时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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