“加载 RadChart 图像时出错”在IIS7上

发布于 2025-01-08 04:39:32 字数 499 浏览 0 评论 0原文

我在 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:

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

相守太难 2025-01-15 04:39:32

在 web.config 文件中...添加以下内容:-

 <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true"/>
    <handlers>
      <add name="ChartImage.axd_*" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />
      <add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />
      <add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />
      <add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode" />
      <add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI"  preCondition="integratedMode" />
    </handlers>
  </system.webServer>

解决了我的问题

in web.config file... add the following:-

 <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true"/>
    <handlers>
      <add name="ChartImage.axd_*" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />
      <add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />
      <add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />
      <add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode" />
      <add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI"  preCondition="integratedMode" />
    </handlers>
  </system.webServer>

that solved my issue

卸妝后依然美 2025-01-15 04:39:32

我遇到了同样的问题,对于 IIS7,您在中的 Telerik HTTP 处理程序需要位于

我不确定您是否应该从 system.web 中删除,但只需复制您的 telerik http 处理程序
对于 rad 图表,应该看起来像这样:

<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2011.3.1305.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />  

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:

<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2011.3.1305.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />  
若水微香 2025-01-15 04:39:32

我不知道他们到底用 RadChartChartHttpHandler 做什么,但我通过更改 requireSSL 属性解决了我的问题system.web>; httpCookies 部分设置为 false:

 <system.web>
    <httpCookies httpOnlyCookies="true" requireSSL="false" lockItem="true" />
 </system.web>

我们最近刚刚将应用程序(使用 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 the ChartHttpHandler, but I solved my issue by changing the requireSSL attribute of the system.web > httpCookies section to false:

 <system.web>
    <httpCookies httpOnlyCookies="true" requireSSL="false" lockItem="true" />
 </system.web>

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 the system.webServer > handlers section and removing any in the system.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.

又怨 2025-01-15 04:39:32

尽管 中已有条目,但我也遇到了同样的问题。(对于 IIS6)和 (对于 IIS7)。对我来说,不同之处在于项目混合了 ASP.NET WebForms 和 MVC。
修复方法是在 Global.asax 中添加这一行。现在 Reports/ 文件夹下的 aspx 页面中的任何图表都可以工作。

routes.IgnoreRoute("Reports/ChartImage.axd/{*pathInfo}"); 

希望这有帮助。

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.

routes.IgnoreRoute("Reports/ChartImage.axd/{*pathInfo}"); 

Hope this helps.

戒ㄋ 2025-01-15 04:39:32

我遇到了同样的问题,对于 IIS7,您所拥有的 Telerik HTTP 处理程序

我通过添加 ChartHttpHandler 解决了该问题

<handlers>
      <add name="ChartHandler" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler" />
</handlers>
 <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />

,并且我还添加了

<rad:RadChart UseSession="false">

I had the same problem, for IIS7 the Telerik HTTP Handlers that you have in

I solved the issue by adding ChartHttpHandler

<handlers>
      <add name="ChartHandler" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler" />
</handlers>
 <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />

and also i added

<rad:RadChart UseSession="false">
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文