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

查看:609
本文介绍了.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" />

我写了一个更详细的解释为什么这个错误发生在MSDN论坛帖子Scott Anderson在他的这个话题的开头。

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天全站免登陆