“加载 RadChart 图像时出错”在IIS7上
我在 ASP.NET Web 应用程序上使用 Telerik RadChart 控件。
在本地主机上运行时工作正常,但现在应用程序已部署到 IIS7 并出现以下错误:
这是为什么?我该如何解决这个问题?
我在一些论坛帖子中看到解决方案是将以下内容添加到 web.config 中的
中:
但是,我已经这样做了,并且错误仍然出现。
I'm using a Telerik RadChart control on my ASP.NET web application.
This works fine when running on localhost, but now the application has been deployed to IIS7 and the following error appears:
Why is this? And how can I resolve the issue?
I've seen on some forum posts that the solution is to add the following into <system.webServer>
in the web.config:
<add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/>
However, I have already done this, and the error is still appearing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
在 web.config 文件中...添加以下内容:-
解决了我的问题
in web.config file... add the following:-
that solved my issue
我遇到了同样的问题,对于 IIS7,您在中的 Telerik HTTP 处理程序需要位于中
我不确定您是否应该从 system.web 中删除,但只需复制您的 telerik http 处理程序
对于 rad 图表,应该看起来像这样:
I had the same problem, for IIS7 the Telerik HTTP Handlers that you have in <system.web> <httphandlers> need to be in <system.webServer><handlers>
I'm not sure if you should remove from system.web but just copy over your telerik http handler
for rad chart, should look something like this:
我不知道他们到底用
RadChart
和ChartHttpHandler
做什么,但我通过更改requireSSL
属性解决了我的问题system.web>; httpCookies
部分设置为 false:我们最近刚刚将应用程序(使用 SSL 并与 RadControls 配合良好)迁移到新服务器,并且暂时在没有 SSL 证书的情况下运行。
我已按照之前的所有说明来解决此问题,包括在使用 only 中放置的处理程序时将所有
RadChart
EnableHandlerDetection
属性设置为 false系统.webServer > handlers 部分并删除system.web > 中的任何内容httpHandlers
部分,没有运气。我要么收到OP发布的错误,要么收到消息告诉您在(旧)system.web>中添加处理程序。 httpHandlers
部分——这些设置的排列没有帮助。I don't know exactly what they're doing with the
RadChart
and theChartHttpHandler
, but I solved my issue by changing therequireSSL
attribute of thesystem.web > httpCookies
section to false:We'd recently just migrated our application (which used SSL and worked fine with RadControls) to a new server and were running with no SSL certificate temporarily.
I'd followed all previous instructions to solve this issue including setting all
RadChart
EnableHandlerDetection
properties to false while using handlers placed only in thesystem.webServer > handlers
section and removing any in thesystem.web > httpHandlers
section, with no luck. I was either getting the error posted by the OP or the message telling you to add a handler in the (old)system.web > httpHandlers
section -- no permutation of these settings helped.尽管
中已有条目,但我也遇到了同样的问题。
(对于 IIS6)和
(对于 IIS7)。对我来说,不同之处在于项目混合了 ASP.NET WebForms 和 MVC。修复方法是在 Global.asax 中添加这一行。现在 Reports/ 文件夹下的 aspx 页面中的任何图表都可以工作。
希望这有帮助。
I had this same issue despite already having the entries in
<system.web> <httphandlers>
(for IIS6) and<system.webServer><handlers>
(for IIS7). The difference for me was a project that is a mix of ASP.NET WebForms and MVC.The fix was adding this line in Global.asax. Now any charts in aspx pages under Reports/ folder works.
Hope this helps.
我遇到了同样的问题,对于 IIS7,您所拥有的 Telerik HTTP 处理程序
我通过添加 ChartHttpHandler 解决了该问题
,并且我还添加了
I had the same problem, for IIS7 the Telerik HTTP Handlers that you have in
I solved the issue by adding ChartHttpHandler
and also i added