gpt4 book ai didi

.Net 3.5 图表控件异常

转载 作者:行者123 更新时间:2023-12-05 00:43:57 27 4
gpt4 key购买 nike

我正在使用新的 free .net chart controls当我在 Visual Studio 中运行项目时,它们似乎工作正常,但是当我通过 IIS 执行相同的操作时,我得到了异常:

[HttpException (0x80004005): No http handler was found for request type 'GET']
System.Web.HttpApplication.MapIntegratedHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig, Boolean convertNativeStaticFileModule) +529
System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +947

[HttpException (0x80004005): Error executing child request for ChartImg.axd.]
System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +4120098
System.Web.UI.DataVisualization.Charting.ChartHttpHandler.EnsureInitialized(Boolean hardCheck) +266
System.Web.UI.DataVisualization.Charting.Chart.GetImageStorageMode() +25
System.Web.UI.DataVisualization.Charting.Chart.Render(HtmlTextWriter writer) +133
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +253
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +87
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +53
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
System.Web.UI.Page.Render(HtmlTextWriter writer) +38
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240

知道我做错了什么吗?谢谢!

最佳答案

找到了解决方案(有点)

解决方案:看起来我在 web.config 中的 httpHandler 是正确的,但是我缺少一个处理程序和一个 appSetting(在第二篇文章 here 中有详细说明)。一旦我整理好这些,它就可以正常工作。

缺失点:只是不确定为什么在使用 Visual Studio 运行它时会起作用。没有这些设置的图形在两种环境(visual studio 和 iis)中都应该失败。好奇的。

感谢大家帮助指出一些好的方向。

关于.Net 3.5 图表控件异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/601883/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com