This is a migrated thread and some comments may be shown as answers.

problem in trial version > error loading rad chart

5 Answers 140 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
javad
Top achievements
Rank 1
javad asked on 14 Jan 2010, 10:50 AM
for test , we download the trial version of telerik and face following problems 
It Dosnot have  any problem on local Dnn Portal,but it takes us the bellow error on main website
 " Error loading RadChart inage ..." .
we added the tag Shown on first load of radchart in Web.Config > httphandler Section .
and add folder radcontrols>chart wich contains file image.aspx.
Please Guid us as soon as posible.

5 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 19 Jan 2010, 06:38 AM
Hello Javad,

This error means that the chart HttpHandler is not able to find the image.
In this scenario the reason is in the dnn url re-writer. You can use the RadChart.HttpHandlerUrl property to manually set the path of the ChartHttpHandler that is required for the correct operation of the chart control. You can set it from code behind like this and the chart should work as expected:

RadChart1.HttpHandlerUrl = ResolveUrl("ChartImage.axd") 
 

Greetings,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Роберт
Top achievements
Rank 1
answered on 06 Jul 2010, 02:44 PM
This didn't help.
       public void Build(){
            RadChart1.Visible = true;
            RadChart1.Width = 1000;
            RadChart1.Height = 500;
            RadChart1.Skin = "Mac";
            RadChart1.Chart.ChartTitle.TextBlock.Text = String.Format("... {0} ...", this.Year);
            RadChart1.Legend.Visible = false;

            if (RadChart1.Series.Count == 0) RadChart1.Series.Add(new Telerik.Charting.ChartSeries("NOU"));

            // Populate the chart
            DataTable tb = GetTable1(this.Year);
            RadChart1.DataSource = tb;
            RadChart1.SeriesOrientation = Telerik.Charting.ChartSeriesOrientation.Vertical;
            RadChart1.Series[0].DataYColumn = "Total";
            RadChart1.PlotArea.XAxis.DataLabelsColumn = "NOU";

            RadChart1.HttpHandlerUrl = ResolveUrl("ChartImage.axd");
            RadChart1.DataBind();

            for (int i = 0; i < tb.Rows.Count;i++)
            {
                RadChart1.Series[0].Items[i].Name = this.Year.ToString() + "_" + tb.Rows[i]["NOU_ID"].ToString();
            }
            RadChart1.Click += new RadChart.ChartClickEventHandler(this.RadChart1_Click);
        }


I'm using Windows Server 2008
Also tried explicitly "http://myurl.com/pages/Charts/ChartImage.axd" without success....

Maybe the image is created in a hidden and different path?

It works on Windows XP, doesn't on Server 2008
0
Ves
Telerik team
answered on 09 Jul 2010, 08:42 AM
Hi Vitali Kirakossiants,

Did you register the chart HttpHandler in both <system.web> and <system.webserver> sections in web.config? The former is needed for IIS 6, while the latter is needed for IIS7 and later. You can find this discussed in more details in this help topic.

I would recommend removing the registration of the chart HttpHandler for the web.config file and then using the link in the control smart tag from the Visual Studio designer.

Sincerely,
Ves
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Rishi
Top achievements
Rank 1
answered on 22 Mar 2012, 09:48 PM
Just Try to Match with Below code in Web.config, your issue will be reoslved!

<

 

 

system.webServer>

 

<

 

 

validation validateIntegratedModeConfiguration="false" />

 

<

 

 

modules>

 

<

 

 

remove name="RadCompression" />

 

<

 

 

add name="RadCompression" type="Telerik.Web.UI.RadCompression"

 

 

 

 

preCondition="integratedMode,runtimeVersionv2.0" />

 

<

 

 

add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="managedHandler" />

 

</

 

 

modules>

 

<

 

 

handlers>

 

<

 

 

remove name="ChartImage_axd" />

 

<

 

 

remove name="Telerik_Web_UI_SpellCheckHandler_axd" />

 

<

 

 

remove name="Telerik_Web_UI_DialogHandler_aspx" />

 

<

 

 

remove name="Telerik_RadUploadProgressHandler_ashx" />

 

<

 

 

remove name="Telerik_Web_UI_WebResource_axd" />

 

<

 

 

remove name="ChartImageHandler" />

 

<

 

 

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>

 

<

 

 

defaultDocument>

 

<

 

 

files>

 

<

 

 

clear />

 

<

 

 

add value="default.aspx" />

 

</

 

 

files>

 

</

 

 

defaultDocument>

 

</

 

 

system.webServer>






 

<

 

 

httpHandlers>

 

<

 

 

add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler"

 

 

 

 

 

 

 

validate="false" />

 

<

 

 

add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler"

 

 

 

 

 

 

 

validate="false" />

 

<

 

 

add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler"

 

 

 

 

 

 

 

validate="false" />

 

<

 

 

add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler"

 

 

 

 

 

 

 

validate="false" />

 

<

 

 

add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource"

 

 

 

 

 

 

 

validate="false" />

 

<

 

 

add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

 

 

 

 

 

 

 

validate="false" />

 

</

 

 

httpHandlers>

 

<

 

 

httpModules>

 

<

 

 

add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>

 

</

 

 

httpModules>

 



0
Lori
Top achievements
Rank 1
answered on 10 Jan 2013, 10:06 PM
I tried matching my web.config code to yours and it is very different. Not sure I feel comfortable changing it.

I am using DNN7 and using the Christoc's DotNetNuke Module Development Template 00.00.09 for DNN6. I even added a Telerik.Web.UI reference to the Module project itself.

I get the error:
The Chart http handler is not registered. Please, manually add the following line to your Web.config httpHandlers section:
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2012.3.1016.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />

---------------------------------------------------------------------------------------------

I added the above to my web.config and I get the error:

HTTP Error 500.23 - Internal Server Error

An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.


---------------------------------------------------------------------------------------------

Web.config:
    <system.webServer><br>        <modules><br>  
          <add name="RequestFilter"
type="DotNetNuke.HttpModules.RequestFilter.RequestFilterModule,
DotNetNuke.HttpModules" preCondition="managedHandler"/><br>          
  <add name="UrlRewrite"
type="DotNetNuke.HttpModules.UrlRewriteModule, DotNetNuke.HttpModules"
preCondition="managedHandler"/><br>            <add
name="MobileRedirect" type="DotNetNuke.HttpModules.MobileRedirectModule,
 DotNetNuke.HttpModules" preCondition="managedHandler"/><br>      
     <add name="Exception"
type="DotNetNuke.HttpModules.Exceptions.ExceptionModule,
DotNetNuke.HttpModules" preCondition="managedHandler"/><br>          
  <add name="UsersOnline"
type="DotNetNuke.HttpModules.UsersOnline.UsersOnlineModule,
DotNetNuke.HttpModules" preCondition="managedHandler"/><br>          
  <add name="DNNMembership"
type="DotNetNuke.HttpModules.Membership.MembershipModule,
DotNetNuke.HttpModules" preCondition="managedHandler"/><br>          
  <add name="Personalization"
type="DotNetNuke.HttpModules.Personalization.PersonalizationModule,
DotNetNuke.HttpModules" preCondition="managedHandler"/><br>          
  <add name="Analytics"
type="DotNetNuke.HttpModules.Analytics.AnalyticsModule,
DotNetNuke.HttpModules" preCondition="managedHandler"/><br>            <add name="Services" type="DotNetNuke.HttpModules.Services.ServicesModule, DotNetNuke.HttpModules"/><br>            <remove name="UrlRoutingModule-4.0"/><br>            <add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition=""/><br>  
          <add name="ClientDependencyModule"
type="ClientDependency.Core.Module.ClientDependencyModule,
ClientDependency.Core"/><br>            <add
name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule,
Telerik.Web.UI" preCondition="managedHandler"/><br>          
 <add name="Detector"
type="FiftyOne.Foundation.Mobile.Detection.DetectorModule,
FiftyOne.Foundation" preCondition="managedHandler"/><br>        </modules><br>        <handlers><br>  
          <add name="LogoffHandler*" path="Logoff.aspx" verb="*"
type="DotNetNuke.Services.Authentication.LogOffHandler, DotNetNuke"
preCondition="integratedMode"/><br>            <add
name="RSSHandler" path="RSS.aspx" verb="*"
type="DotNetNuke.Services.Syndication.RssHandler, DotNetNuke"
preCondition="integratedMode"/><br>            <add
name="LinkClickHandler" path="LinkClick.aspx" verb="*"
type="DotNetNuke.Services.FileSystem.FileServerHandler, DotNetNuke"
preCondition="integratedMode"/><br>            <add
name="CaptchaHandler" path="*.captcha.aspx" verb="*"
type="DotNetNuke.UI.WebControls.CaptchaHandler, DotNetNuke"
preCondition="integratedMode"/><br>            <add
name="UserProfilePageHandler" path="User.aspx" verb="*"
type="DotNetNuke.Services.UserProfile.UserProfilePageHandler,
DotNetNuke" preCondition="integratedMode"/><br>            <add
name="RadProgressHandler" verb="*"
path="Telerik.RadUploadProgressHandler.ashx"
type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"
preCondition="integratedMode"/><br>            <add
name="UserProfilePicHandler" path="ProfilePic.ashx" verb="*"
type="DotNetNuke.Services.UserProfile.UserProfilePicHandler, DotNetNuke"
 preCondition="integratedMode"/><br>            <remove name="ExtensionlessUrl-Integrated-4.0"/><br>  
          <add name="ExtensionlessUrl-Integrated-4.0" path="*."
verb="GET,HEAD,POST,DEBUG,PUT,DELETE"
type="System.Web.Handlers.TransferRequestHandler"
preCondition="integratedMode,runtimeVersionv4.0"/><br>          
 <add name="SitemapHandler" path="Sitemap.aspx" verb="*"
type="DotNetNuke.Services.Sitemap.SitemapHandler, DotNetNuke"
preCondition="integratedMode"/><br>            <add
name="ClientDependencyHandler" verb="*" path="DependencyHandler.axd"
type="ClientDependency.Core.CompositeFiles.CompositeDependencyHandler,
ClientDependency.Core" preCondition="integratedMode"/><br>          
 <add name="Telerik.Web.UI.WebResource" verb="*"
path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource,
Telerik.Web.UI" preCondition="integratedMode"/><br>          
 <add name="Telerik.Web.UI.ChartHttpHandler" verb="*"
path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler,
Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
preCondition="integratedMode"/><br>            <add
name="HtmTemplateFileHandler" verb="*" path="*.htmtemplate"
type="DotNetNuke.Providers.RadEditorProvider.HtmTemplateFileHandler,
DotNetNuke.RadEditorProvider" preCondition="integratedMode"/><br>        </handlers><br>    </system.webServer><br>    <system.web><br>    <b><httpHandlers><br>     
 <add path="ChartImage.axd"  verb="*"
type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI,
Version=2012.3.1016.35, Culture=neutral,
PublicKeyToken=121fae78165ba3d4" validate="false" /><br>    </httpHandlers></b>


---------------------------------------------------------------------------------------------

ASPX page: Tried <telerick:RadChart...> and <dnn:DnnChart...>
<%@ Register Assembly="DotNetNuke.Web" Namespace="DotNetNuke.Web.UI.WebControls" TagPrefix="dnn" %><br><%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %><br><%@ Register TagPrefix="chart" Namespace="Telerik.Charting" Assembly="Telerik.Web.UI" %><br><br>              <telerik:RadChart ID="PollRadChart" runat="server"><br>                    <Series><br>                        <chart:ChartSeries Name="PollChartSeries" Type="Pie"><br>                            <Items><br>                                <chart:ChartSeriesItem Name="Chocolate" YValue="2"></chart:ChartSeriesItem><br>                                <chart:ChartSeriesItem Name="Escargot" YValue="6"></chart:ChartSeriesItem><br>                                <chart:ChartSeriesItem Name="Pizza" YValue="4"></chart:ChartSeriesItem><br>                                <chart:ChartSeriesItem Name="Steak" YValue="15"></chart:ChartSeriesItem><br>                            </Items><br>                        </chart:ChartSeries><br>                    </Series><br>                </telerik:RadChart><br>                <%--<dnn:DnnChart ID="PollDnnChart" runat="server"><br>                    <Series><br>                        <dnn:DnnChartSeries Name="PollChoices" Type="Pie"><br>                            <Items><br>                                <dnn:DnnChartSeriesItem Name="Chocolate" YValue="2"></dnn:DnnChartSeriesItem><br>                                <dnn:DnnChartSeriesItem Name="Escargot" YValue="6"></dnn:DnnChartSeriesItem><br>                                <dnn:DnnChartSeriesItem Name="Pizza" YValue="4"></dnn:DnnChartSeriesItem><br>                                <dnn:DnnChartSeriesItem Name="Steak" YValue="15"></dnn:DnnChartSeriesItem><br>                            </Items><br>                        </dnn:DnnChartSeries><br>                    </Series><br>                </dnn:DnnChart>--%>


---------------------------------------------------------------------------------------------

CS file: Tried adding HttpHandlerUrl
PollRadChart.HttpHandlerUrl = ResolveUrl("ChartImage.axd");


---------------------------------------------------------------------------------------------

After all of this I STILL cannot get the chart to load. Can someone from Telerik or DotNetNuke please tell me if the chart control that installs with DNN 7 is compatible with DNN 7 or if we are doing something wrong? This is holding us up on a very critical project.
 
Thanks so much if you can help!
Tags
Chart (Obsolete)
Asked by
javad
Top achievements
Rank 1
Answers by
Ves
Telerik team
Роберт
Top achievements
Rank 1
Rishi
Top achievements
Rank 1
Lori
Top achievements
Rank 1
Share this question
or