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

Field not found: 'Telerik.Charting.ActiveRegion.activeRegionList'.

25 Answers 715 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Sypher
Top achievements
Rank 1
Sypher asked on 26 Feb 2008, 02:20 AM
I'm getting this error after upgrading from Prometheus 1314 to 1425.

Field not found: 'Telerik.Charting.ActiveRegion.activeRegionList'.

[MissingFieldException: Field not found: 'Telerik.Charting.ActiveRegion.activeRegionList'.]
   Telerik.Web.UI.MapAreaBuilder.GenerateImageMap(IContainer container) +0
   Telerik.Web.UI.RadChart.RenderContents(HtmlTextWriter writer) +1128
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29
   Telerik.Web.UI.RadDataBoundControl.Render(HtmlTextWriter writer) +9
...

Because of the "GenerateImageMap" in the above, I tried adding the CreateImageMap="false" option to the chart, and it no longer errors out, so I'm fine now, but I'm guessing others might run into this.  I'm going to report this as a bug now...  Just an FYI to any early adopters out there.

25 Answers, 1 is accepted

Sort by
0
Terry Webster
Top achievements
Rank 1
answered on 26 Feb 2008, 01:14 PM
I am also getting this error:

 

Server Error in '/PrometheusDashboard' Application.

Field not found: 'Telerik.Charting.ActiveRegion.activeRegionList'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.MissingFieldException: Field not found: 'Telerik.Charting.ActiveRegion.activeRegionList'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[MissingFieldException: Field not found: 'Telerik.Charting.ActiveRegion.activeRegionList'.]
   Telerik.Web.UI.MapAreaBuilder.GenerateImageMap(IContainer container) +0
   Telerik.Web.UI.MapAreaBuilder.GenerateImageMap() +62
   Telerik.Web.UI.RadChart.RenderContents(HtmlTextWriter writer) +1566
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29
   Telerik.Web.UI.RadDataBoundControl.Render(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.Control.Render(HtmlTextWriter writer) +7
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.Control.Render(HtmlTextWriter writer) +7
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +7
   Telerik.Web.UI.RadWebControl.RenderContents(HtmlTextWriter writer) +46
   Telerik.Web.UI.RadPane.RenderContents(HtmlTextWriter writer) +552
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29
   Telerik.Web.UI.RadWebControl.Render(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   Telerik.Web.UI.RadSplitter.RenderContents(HtmlTextWriter writer) +253
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29
   Telerik.Web.UI.RadWebControl.Render(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +7
   Telerik.Web.UI.RadWebControl.RenderContents(HtmlTextWriter writer) +46
   Telerik.Web.UI.RadPane.RenderContents(HtmlTextWriter writer) +552
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29
   Telerik.Web.UI.RadWebControl.Render(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   Telerik.Web.UI.RadSplitter.RenderContents(HtmlTextWriter writer) +253
   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29
   Telerik.Web.UI.RadWebControl.Render(HtmlTextWriter writer) +53
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.Control.Render(HtmlTextWriter writer) +7
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.Page.Render(HtmlTextWriter writer) +26
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +134
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +2113547
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.Page.Render(HtmlTextWriter writer) +26
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896


Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET Version:2.0.50727.833
0
Sypher
Top achievements
Rank 1
answered on 26 Feb 2008, 03:14 PM
As a work-around for the error, try setting CreateImageMap="false" and see if it works. 

I have sent a sample project with this error to Telerik in a bug report.
0
Giuseppe
Telerik team
answered on 26 Feb 2008, 05:13 PM
Hi Bryan, Terry,

Unfortunately we are still unable to reproduce the problem locally with the sample Bryan sent us in a support ticket.

@Terry - could you could paste your chart declaration here so we can investigate it locally as well?

@Bryan - could you confirm that this is the right chart declaration that causes the exception on your end as we are unable to reproduce the problem with your application locally:

<Telerik:RadChart runat="server" id="c"
    <Series> 
        <Telerik:ChartSeries> 
            <Items> 
                <Telerik:ChartSeriesItem XValue="1" YValue="100"></Telerik:ChartSeriesItem> 
            </Items> 
        </Telerik:ChartSeries> 
    </Series> 
</Telerik:RadChart> 


As our efforts to observe the problem were not successful we did a quick Google search for this exception and a forum thread here suggests that this might be solved by doing a complete rebuild of the solution instead of incremental build -- could you try cleaning the solution and rebuilding it and let us know if that helps.

Looking forward to your reply.


All the best,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Terry Webster
Top achievements
Rank 1
answered on 26 Feb 2008, 06:03 PM
Here is one of the ones causing the issue.  Please note, i did add the CreateImageMap="false" and that has fixed it for now.

<telerik:RadChart ID="RadChart1" runat="server" DataSourceID="odsALOS" DefaultType="Line" 
    EnableEmbeddedBaseStylesheet="False" 
    EnableTheming="False" 
    SeriesPalette="Gradient"   
    Width="312px" CreateImageMap="false">  
    <PlotArea> 
        <Appearance Border-Color="94, 94, 93" Corners="Round, Round, Round, Round, 6" Dimensions-Margins="45px, 5px, 105px, 40px" 
            SeriesPalette="Gradient">  
            <FillStyle MainColor="65, 201, 254" SecondColor="0, 107, 186">  
            </FillStyle> 
        </Appearance> 
        <YAxis> 
            <Appearance MinorTick-Visible="False">  
                <MajorGridLines Color="Black" /> 
                <MinorGridLines Visible="False" /> 
            </Appearance> 
            <AxisLabel> 
                <TextBlock> 
                    <Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">  
                    </Appearance> 
                </TextBlock> 
            </AxisLabel> 
        </YAxis> 
        <YAxis2> 
            <AxisLabel> 
                <TextBlock> 
                    <Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">  
                    </Appearance> 
                </TextBlock> 
            </AxisLabel> 
        </YAxis2> 
        <XAxis AutoScale="False" DataLabelsColumn="Month_Year" MaxValue="0" MinValue="0" Step="1">  
            <Appearance MajorTick-Color="Black">  
                <LabelAppearance RotationAngle="90">  
                </LabelAppearance> 
                <TextAppearance TextProperties-Color="Black">  
                </TextAppearance> 
                <MajorGridLines Color="DimGray" Visible="False" /> 
            </Appearance> 
            <Items> 
                <telerik:ChartAxisItem> 
                    <TextBlock Text="abc">  
                    </TextBlock> 
                </telerik:ChartAxisItem> 
                <telerik:ChartAxisItem> 
                    <TextBlock Text="abc">  
                    </TextBlock> 
                </telerik:ChartAxisItem> 
                <telerik:ChartAxisItem> 
                    <TextBlock Text="abc">  
                    </TextBlock> 
                </telerik:ChartAxisItem> 
                <telerik:ChartAxisItem> 
                    <TextBlock Text="abc">  
                    </TextBlock> 
                </telerik:ChartAxisItem> 
                <telerik:ChartAxisItem> 
                    <TextBlock Text="abc">  
                    </TextBlock> 
                </telerik:ChartAxisItem> 
                <telerik:ChartAxisItem> 
                    <TextBlock Text="abc">  
                    </TextBlock> 
                </telerik:ChartAxisItem> 
                <telerik:ChartAxisItem> 
                    <TextBlock Text="abc">  
                    </TextBlock> 
                </telerik:ChartAxisItem> 
            </Items> 
            <AxisLabel> 
                <TextBlock> 
                    <Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">  
                    </Appearance> 
                </TextBlock> 
            </AxisLabel> 
        </XAxis> 
    </PlotArea> 
    <ChartTitle> 
        <TextBlock Text="ALOS">  
            <Appearance TextProperties-Color="White" TextProperties-Font="Verdana, 14.25pt, style=Bold">  
            </Appearance> 
        </TextBlock> 
        <Appearance Border-Color="64, 64, 64" Corners="Round, Round, Round, Round, 3" Dimensions-Margins="4%, 10px, 14px, 0%" 
            Position-AlignedPosition="Top" Position-Auto="False" Position-X="93.73032" Position-Y="5">  
            <FillStyle MainColor="177, 183, 144">  
            </FillStyle> 
        </Appearance> 
    </ChartTitle> 
    <Series> 
        <telerik:ChartSeries DataYColumn="Cost_Universal" Name="All Groups" Type="Line">  
            <Appearance> 
                <LabelAppearance Visible="False">  
                </LabelAppearance> 
                <FillStyle MainColor="199, 243, 178">  
                </FillStyle> 
            </Appearance> 
        </telerik:ChartSeries> 
        <telerik:ChartSeries DataYColumn="Cost_Client" Name="Selected Group" Type="Line">  
            <Appearance> 
                <LabelAppearance Visible="False">  
                </LabelAppearance> 
                <FillStyle MainColor="253, 226, 0">  
                </FillStyle> 
            </Appearance> 
        </telerik:ChartSeries> 
    </Series> 
    <Appearance Border-Color="117, 117, 117">  
        <FillStyle FillType="Gradient" MainColor="244, 244, 234" SecondColor="167, 172, 137">  
        </FillStyle> 
    </Appearance> 
    <Legend> 
        <Appearance Border-Color="64, 64, 64" Corners="Round, Round, Round, Round, 3" Dimensions-Margins="18%, 1%, 1px, 1px" 
            Position-AlignedPosition="Bottom">  
            <FillStyle MainColor="177, 183, 144">  
            </FillStyle> 
        </Appearance> 
    </Legend> 
</telerik:RadChart> 
0
Sypher
Top achievements
Rank 1
answered on 26 Feb 2008, 06:08 PM
Yes, that chart does it for me as well.  The entire page code is:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
<%@ Register TagPrefix="Telerik" Assembly="Telerik.Charting" Namespace="Telerik.Charting" %> 
<%@ Register TagPrefix="Telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <div> 
            <Telerik:RadChart runat="server" id="c">    
                <Series>                        
                    <Telerik:ChartSeries>    
                        <Items>    
                            <Telerik:ChartSeriesItem XValue="1" YValue="100"></Telerik:ChartSeriesItem>    
                        </Items>    
                    </Telerik:ChartSeries>    
                </Series>    
            </Telerik:RadChart>    
        </div> 
    </form> 
</body> 
</html> 

I am in an AJAX Enabled Web Application using ASP.NET 2.0, brand new project with only this one page, a web.config, and the two DLLs in the Bin dir.

The web.config is the default one for an AJAX Enabled Web Application plus the chart image http handler:

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

I am using VS 2005 Team Edition for Software Developers, and it does not give me an option to Clean the project/web site.  I have another machine with VS 2005 Pro on it, and I know it has different build options, so I might be able to try it out over there as well.

My big project where I saw this first is a Web Application Project with MS AJAX stuff added by hand.

Maybe it does have something to do with which Visual Studio version you use to compile your site.
0
Sypher
Top achievements
Rank 1
answered on 26 Feb 2008, 06:21 PM
I just tried the same project on my other machine and it compiled and worked just fine.  So, somehow, I think it may have something to do either with the version of VS2005 or some other oddity on my machine that happens to be the same oddity Terry has.

This is definitely a weird one.
0
Norsten
Top achievements
Rank 1
answered on 26 Feb 2008, 06:22 PM
I got this error also  and used the work around suggested by sypher.

(My setup: Vista 32bit, IE7, VS2008 team suite & using Prometheus 1425.35)

When I did set the "CreateimageMap = False" -I had to go into the html source to remove lots of &nbsp; within the chart control.

0
Matthew Erwin
Top achievements
Rank 1
answered on 26 Feb 2008, 09:36 PM
Maybe it has to do with Ajax Panels...I'm using one -- don't know if the others who reported this are...problem occurred during the initial load of the page -- not during an ajax callback. The suggested solution of turning off CreateImageMap worked -- fortunately I don't use image maps. :-)

My code for research purposes is as follows (View-State is disabled on this page):

        <telerik:radajaxmanager id="ajaxManager" runat="server">  
                <telerik:AjaxSetting AjaxControlID="linkRollingVolume">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="lblMessage"/>  
                        <telerik:AjaxUpdatedControl ControlID="lblBarChartTitle"/>  
                        <telerik:AjaxUpdatedControl ControlID="radcBarChart" LoadingPanelID="ajaxLoading"/>  
                        <telerik:AjaxUpdatedControl ControlID="linkRollingVolume"/>  
                        <telerik:AjaxUpdatedControl ControlID="linkRollingBoarding"/>  
                        <telerik:AjaxUpdatedControl ControlID="linkTodaysBoarding"/>  
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
        </telerik:radajaxmanager> 
        <telerik:RadAjaxLoadingPanel id="ajaxLoading" Runat="server">  
            <asp:Image id="imgLoad" style="MARGIN-TOP: 60px" runat="server" ImageUrl="~/RadControls/Ajax/Skins/Default/Loading.gif" AlternateText="Loading..."></asp:Image> 
        </telerik:RadAjaxLoadingPanel> 
 
 
            <telerik:radchart id="radcBarChart" Runat="server" Height="185px" Width="280px" BorderWidth="0" ChartTitle-Visible="false">  
                <Appearance Border-Color="227, 227, 227" /> 
                <PlotArea> 
                    <Appearance FillStyle-MainColor="White" FillStyle-SecondColor="White" Border-Color="" Dimensions-Margins="10,4,30,55"/>  
                    <YAxis> 
                        <Appearance TextAppearance-TextProperties-Font="Arial, 7pt" TextAppearance-TextProperties-Color="#6B818F"/>  
                    </YAxis> 
                    <XAxis> 
                        <Appearance TextAppearance-TextProperties-Font="Arial, 7pt" TextAppearance-TextProperties-Color="#6B818F"/>  
                    </XAxis> 
                </PlotArea> 
                <Legend Visible="False" TextBlock-Visible="False">  
                    <Appearance Dimensions-Margins="0,0,0,0" Dimensions-Paddings="0,0,0,0">  
                        <ItemAppearance Dimensions-Margins="0,0,0,0" Dimensions-Paddings="0,0,0,0"/>  
                        <ItemMarkerAppearance Dimensions-Margins="0,0,0,0" Dimensions-Paddings="0,0,0,0" Dimensions-Width="6" Dimensions-Height="6"/>  
                        <ItemTextAppearance Dimensions-Margins="0,0,0,0" Dimensions-Paddings="0,0,0,0"/>  
                    </Appearance> 
                </Legend> 
            </telerik:radchart> 


Code-behind is:

    protected void linkRollingVolume_Click( object sender, EventArgs e ) { RenderRollingVolumeChart( ); }  
    private void RenderRollingVolumeChart( )  
    {  
        ActiveGraph1Chart = HomePageSectionType.RollingVolumeChart;  
 
        linkRollingVolume.Font.Bold = true;  
        linkRollingBoarding.Font.Bold = false;  
        linkTodaysBoarding.Font.Bold = false;  
          
        lblBarChartTitle.Text = "Rolling Volume";  
        radcBarChart.Series.Clear( );  
 
        //setup the Y Axis  
        radcBarChart.PlotArea.YAxis.AutoScale = true;  
        radcBarChart.PlotArea.YAxis.AxisLabel.Visible = true;  
        radcBarChart.PlotArea.YAxis.AxisLabel.TextBlock.Text = "Volume in 100,000 ($)";  
        radcBarChart.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color = Color.FromArgb( 107, 129, 143 );  
        radcBarChart.PlotArea.YAxis.AxisLabel.TextBlock.Appearance.TextProperties.Font = new Font( "Arial", 9 );  
 
        //setup the X Axis  
        radcBarChart.PlotArea.XAxis.AutoScale = false;  
        radcBarChart.PlotArea.XAxis.Items.Clear( );  
        radcBarChart.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = -90;  
 
        bool empty = true;  
        if( Session["Dashboard_GetRollingVolume"] == null )  
            Session["Dashboard_GetRollingVolume"] = _reportService.GetRollingVolume( base.CurrentUser.PAN );  
 
        RollingVolumeResult[] rollingVolumeResults = Session["Dashboard_GetRollingVolume"as RollingVolumeResult[];  
        if( rollingVolumeResults != null )  
        {  
            ChartSeries series1 = radcBarChart.CreateSeries( string.Empty, Color.FromArgb( 107, 129, 143 ), Color.FromArgb( 107, 129, 143 ), ChartSeriesType.StackedBar );  
            series1.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.Nothing;  
            series1.Appearance.ShowLabels = false;  
 
            ChartSeries series2 = radcBarChart.CreateSeries( string.Empty, Color.FromArgb( 107, 129, 143 ), Color.FromArgb( 107, 129, 143 ), ChartSeriesType.StackedBar );  
            series2.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.Nothing;  
            series2.Appearance.ShowLabels = false;  
 
            //iterate through the possible card types  
            for(int cardType = 1; cardType <= 2; cardType++)  
            {  
                //iterate through the last 13 months  
                forint index = 13; index > 0; index-- )  
                {  
                    int month = DateTime.Today.AddMonths(1-index).Month;  
                    int year = DateTime.Today.AddMonths(1-index).Year;  
                    decimal captureAmount = 0;  
 
                    bool found = false;  
                    foreach( RollingVolumeResult rollingVolumeResult in rollingVolumeResults )  
                    {  
                        if( rollingVolumeResult.WOMonth == month && rollingVolumeResult.WOYear == year &&   
                            rollingVolumeResult.CardType == cardType )  
                        {   
                            if( (captureAmount = rollingVolumeResult.CaptureAmount ?? 0) != 0 )  
                                empty = false;  
 
                            found = true;  
                            break;  
                        }  
                    }  
                      
                    ChartSeriesItem item = new ChartSeriesItem( !found );  
                    item.YValue = (double)captureAmount;  
                    item.Appearance.FillStyle.FillType = FillType.Solid;  
                    item.Name = CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(month).Substring(0, 3);  
 
                    if( cardType == 1 )  
                    {  
                        radcBarChart.PlotArea.XAxis.AddItem(item.Name.ToUpper());  
                        item.Appearance.FillStyle.MainColor = _colors[2];  
                        item.Appearance.FillStyle.SecondColor = _secondaryColors[2];  
                        item.Appearance.FillStyle.FillType = FillType.Gradient;  
                        series1.Items.Add( item );  
                    }  
                    else 
                    {  
                        item.Appearance.FillStyle.MainColor = _colors[0];  
                        item.Appearance.FillStyle.SecondColor = _secondaryColors[0];  
                        item.Appearance.FillStyle.FillType = FillType.Gradient;  
                        series2.Items.Add( item );  
                    }  
                }  
            }  
        }  
 
        //if there is no data, set the chart origin to zero  
        if( empty )  
        {  
            radcBarChart.PlotArea.YAxis.AutoScale = false;  
            radcBarChart.PlotArea.YAxis.MinValue = 0;  
            radcBarChart.PlotArea.YAxis.IsZeroBased = true;  
        }  
    } 
0
Sopheap Ly
Top achievements
Rank 1
answered on 27 Feb 2008, 12:55 AM
I'm having the same exception using Prometheus Build 1425, IIS7 and VS2008. Even the Chart Live Examples is throwing the same exception. It works fine when CreateImageMap="false". I'm also experiencing another exception:

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Unknown server tag 'telerik:ChartSeries'.

Source Error:

Line 16:         <Telerik:RadChart runat="server" id="c" CreateImageMap="false"> 
Line 17: <Series>
Line 18: <Telerik:ChartSeries>
Line 19: <Items>
Line 20: <Telerik:ChartSeriesItem XValue="1" YValue="100"></Telerik:ChartSeriesItem>

0
Ves
Telerik team
answered on 27 Feb 2008, 05:03 PM
Hi everyone,

This issue could happen if you do not use the official version of Telerik.Charting.dll 1.7.2 released earlier this week. Note, that you can get this error if you have Telerik.Charting.dll v. 1.7.2 but received prior to the service pack release.

The solution -- if you have Telerik.Charting 1.7.2 installed in GAC - uninstall it and install the new one from the official release. If you do not have Telerik.Charting 1.7.2 installed in GAC, please make sure that you have updated Telerik.Charting.dll in your project's Bin folder.

Sopheap Ly, it seems you have missed the second Register directive in the page:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Charting" %>


All the best,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Sopheap Ly
Top achievements
Rank 1
answered on 01 Mar 2008, 03:48 AM
Thanks telerik,

I uninstalled Telerik.Charting 1.7.2 assembly from GAC, and now everything works fine! Active Region is now working. I don't know how this assembly got into GAC first place, as I never installed Prometheus. Maybe it's the old version of the telerik WebControls for ASP.NET.

To remove the assembly from GAC, you will need to remove the installer dependancy in registry first. Read http://support.microsoft.com/kb/873195

Secondly, open C:\Windows\Assembly. Right click on Telerik.Charting and click Uninstall.
0
Andrea
Top achievements
Rank 2
Iron
answered on 04 Mar 2008, 12:28 PM
I have the same problem but I cant delete the assembly from the GAC. It says me that there is an application that uses it.

Any suggestion?

Thanks.

p.s.: I have also the RadControls for ASP.NET installed


0
Andrea
Top achievements
Rank 2
Iron
answered on 04 Mar 2008, 01:45 PM
News:

I uninstalled the Prometheus and then the assembly from the GAC... I reinstalled the Prometheus but the problem isnt solved.

In the chart section of the demo site I notice this error:
System.MissingFieldException: Impossibile trovare il campo 'Telerik.Charting.ActiveRegion.activeRegionList'

Regards.
0
Giuseppe
Telerik team
answered on 05 Mar 2008, 08:42 AM
Hi Andrea,

On further investigation we were able to track down the root of the problem -- it seems by mistake we have shipped the latest official release of the WinForms RadControls (Q3 2007 SP1) and the Prometheus RadControls (Q3 2007 SP2) with different versions of the Telerik.Charting assembly (however both of them labeled as 1.7.2). So if you have installed both bundles you will receive the described error -- in order to fix the problem you need to force install in the GAC the Telerik.Charting.dll that you received with the Prometheus download. You can achieve that either by dragging and dropping the dll in the C:\Windows\assembly folder or you can execute the gacutil tool with the following arguments:

gacutil /f /i "[path-to-the-charting-dll]\TelerikCharting.dll"

After you force the install of the assembly, you need to restart your IIS as well. We are sorry for the temporary inconvenience.


Regards,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Andrea
Top achievements
Rank 2
Iron
answered on 05 Mar 2008, 09:44 AM
Thanks!

This solved the problem.


Regards.
0
david
Top achievements
Rank 1
answered on 05 Mar 2008, 01:44 PM
 OK, but I cant delete the assembly from the GAC. It says that there is an application that uses it.

When I copy the telerik.charting.dll to the assembly and restart IIS the problem continues.

the gacutil gives me an 'access error'  when I try to run it and remove the .dll, even when I run it as administrator

0
Giuseppe
Telerik team
answered on 06 Mar 2008, 10:34 AM
Hello david,

You cannot uninstall the assembly from GAC because there is a dependency imposed by the RadControls Installer. However, it is not necessary to uninstall the assembly -- you just need to force install the fresh one on top of it (either through the gacutil or you can manually drop the Telerik.Charting.dll in the C:\Windows\assembly folder, then restart the IIS). We were unable to reproduce a problem with either approach in our local tests in Windows Vista -- could you confirm that the gacutil tool works as expected if you try to list the GAC assemblies for example and only fails if you try to force install the charting assembly?

If the problem persists -- we would suggest you to uninstall the Winforms and the Prometheus bundles. Then install first the Prometheus suite and after that -- the Winforms one; that should enable you to use both suites without problems.


Kind regards,
Manuel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
david
Top achievements
Rank 1
answered on 06 Mar 2008, 01:17 PM
Ok, I do not have nor have I ever had winforms installed.

I uninstalled Prometheus.

The Telerik.charting.dll was removed from the GAC.

I reinstalled the 3_1425 version.

same error - 404. - Requested URL: http://localhost:80/Instructor/ChartImage.axd?UseSession=true&ChartID=213cb442-d4a2-48d4-9d55-d879e7b62031_chart_ctl05$RadChart1&imageFormat=Png&random=0.554809075572905

web.config - 

<

add assembly="Telerik.Charting, Version=1.7.2.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763"/>

<

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


0
Ves
Telerik team
answered on 07 Mar 2008, 12:57 PM
Hi David,

This error does not seem to be the same error as the subject of this thread. Please, make sure the http handler is defined correctly. You can delete it from web.config and use RadChart's smart tag to add it again.

Kind regards,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
david
Top achievements
Rank 1
answered on 07 Mar 2008, 01:10 PM
I deleted the httphandler path and then used the smarttag to add it back in, same message:

Requested URL: http://localhost:80/Instructor/ChartImage.axd?UseSession=true&ChartID=b47d8308-8a89-4b3d-8abf-3c18df94bd9d_chart_ctl05$RadChart1&imageFormat=Png&random=0.133547471898397

Physical Path: C:\inetpub\wwwroot\Instructor\ChartImage.axd

Logon User: Anonymous

0
Ves
Telerik team
answered on 11 Mar 2008, 12:24 PM
Hi David,

Do you use IIS7 integrated mode on Windows Vista? If that is the case - you will need to manually register the chart http handler in system.webserver section of web.config file. Here is an example:

<system.webServer>
      <handlers>
            …
<add name=”ChartHandler” path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI" />
            …
      </handlers>
</system.webServer>



Kind regards,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
david
Top achievements
Rank 1
answered on 11 Mar 2008, 01:27 PM
Thats it and solved the problem.

Thank you.

regards
0
damien jorgensen
Top achievements
Rank 1
answered on 27 Mar 2008, 12:50 AM
This issue remains for me.It appears to only happens on IIS7, im in classic mode and have tried adding the handler to the 

<system.webServer>

but the issue still remians

0
Konstantin Petkov
Telerik team
answered on 27 Mar 2008, 05:50 AM
Hello Damien,

Have you tried uninstalling the Charting assembly from the GAC? Please, review the entire thread for solutions. I hope our suggestions here will help you resolve the error.

All the best,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
damien jorgensen
Top achievements
Rank 1
answered on 27 Mar 2008, 11:58 AM

I have got it to work, by installing the charting control into the GAC (rather than remove it as I had done earlier).

However the information about adding the handler to the 

<system.webServer>

section, resulted in another error

Handler "ChartHandler" has a bad module "ManagedPipelineHandler" in its module list

And as such I have removed it and it now works

Tags
Chart (Obsolete)
Asked by
Sypher
Top achievements
Rank 1
Answers by
Terry Webster
Top achievements
Rank 1
Sypher
Top achievements
Rank 1
Giuseppe
Telerik team
Norsten
Top achievements
Rank 1
Matthew Erwin
Top achievements
Rank 1
Sopheap Ly
Top achievements
Rank 1
Ves
Telerik team
Andrea
Top achievements
Rank 2
Iron
david
Top achievements
Rank 1
damien jorgensen
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Share this question
or