.NET 3.5的图表控制例外:错误执行的ChartImg.axd子请求 [英] .NET 3.5 chart controls exception: Error executing child request for ChartImg.axd

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

问题描述

任何人都收到此错误使用新的免费图表控件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:  <一href="http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/1dc4b352-c9a5-49dc-8f35-9b176509faa1/">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.

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

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