To summarize, it says to put this in in the system.webserver/handlers section for IIS7:
<add name="ChartImage.axd_*" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" />
And to put this in the system.web/httphandlers section for IIS6:
<add verb="*"path="ChartImage.axd"type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
We have added these sections and the control works fine.
The problem is that removing either of these config blocks causes the RadChart to break. We are running in IIS7 integrated mode. Only the handler in the system.webserver/handlers section should matter, but that is not the case.
If we remove just the httphandler from the system.web IIS6 section, the RadChart renders with this message:
I don't understand how it is using both handlers. It should be using either the system.webserver IIS7 integrated mode handler or the system.web IIS6/non-integrated httphandler. In our case, since we are running IIS7 integrated, we should only have to specify the one handler.
Furthermore, we are using the Rad HTML editor control which requires the DialogHandler and the SpellCheckHandler, and it works totally fine when we specify the handlers in only the system.webserver IIS7 section. What is different about RadChart?
7 Answers, 1 is accepted
Please set the RadChart.EnableHandlerDetection property to false and you will be able to use the control with IIS7 handler declaration only. We will forward your feedback to our developers so they can enhance the http handler detection logic in future versions of the control.
the Telerik team
I am having exactly the same problem except that I am using 'Classic' mode which I need for developing a DNN module. I have disabled/enabled the EnableHandlerDetection property with no change to the output.
I get a Java Script error and then the message 'Error Loading RadChart image. You may also wish to check the ASP.NET Trace for further details. Display stack trace?' with an OK or Cancel button.
If I click OK it just does it again and if I click Cancel the page completes but the chart is not shown.
I am using Windows 7 with VS2008 and all updates applied.
Any help please?
Can you paste your web.config settings so we can track down the issue here? The problem certainly seems related to incorrect configuration of the ChartHttpHandler in the web.config (as you say you are using "Classic" mode that means your ChartHttpHandler should be declared in the system.web/httphandlers section):
Btw -- does adding the system.webserver/handlers section for IIS7 make any difference (it supports IIS7 integrated mode but just in case):
Thank you for your reply, it's much appreciated. In the end I sorted it myself, it was a web.config problem. Apologies for troubling you.
i am haing same problem can you please tell me what solution u implemented?
your help would be greatly appreciated.
I am attaching here a really simple example that runs fine on my end in both Classic and Integrated mode. This is so because it uses a standard web.config with all our HTTP handlers added to it, and they have not changed recently.
Some of our controls require special resources and thus, they need the appropriate handler in the web.config. This cannot be avoided, but once you copy over about a dozen lines, you should not need to change them again.
I hope this explains the case.
the Telerik team