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

Thread is closed for posting
26 posts, 0 answers
  1. Sypher
    Sypher avatar
    79 posts
    Member since:
    Aug 2006

    Posted 25 Feb 2008 Link to this post

    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.
  2. Terry Webster
    Terry Webster avatar
    13 posts
    Member since:
    Oct 2006

    Posted 26 Feb 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sypher
    Sypher avatar
    79 posts
    Member since:
    Aug 2006

    Posted 26 Feb 2008 Link to this post

    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.
  5. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 26 Feb 2008 Link to this post

    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
  6. Terry Webster
    Terry Webster avatar
    13 posts
    Member since:
    Oct 2006

    Posted 26 Feb 2008 Link to this post

    Here is one of the ones causing the issue.  Please note, i did add the CreateImageMap="false" and that has fixed it for now.

    1 <telerik:RadChart ID="RadChart1" runat="server" DataSourceID="odsALOS" DefaultType="Line" 
    2     EnableEmbeddedBaseStylesheet="False" 
    3     EnableTheming="False" 
    4     SeriesPalette="Gradient"   
    5     Width="312px" CreateImageMap="false">  
    6     <PlotArea> 
    7         <Appearance Border-Color="94, 94, 93" Corners="Round, Round, Round, Round, 6" Dimensions-Margins="45px, 5px, 105px, 40px" 
    8             SeriesPalette="Gradient">  
    9             <FillStyle MainColor="65, 201, 254" SecondColor="0, 107, 186">  
    10             </FillStyle> 
    11         </Appearance> 
    12         <YAxis> 
    13             <Appearance MinorTick-Visible="False">  
    14                 <MajorGridLines Color="Black" /> 
    15                 <MinorGridLines Visible="False" /> 
    16             </Appearance> 
    17             <AxisLabel> 
    18                 <TextBlock> 
    19                     <Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">  
    20                     </Appearance> 
    21                 </TextBlock> 
    22             </AxisLabel> 
    23         </YAxis> 
    24         <YAxis2> 
    25             <AxisLabel> 
    26                 <TextBlock> 
    27                     <Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">  
    28                     </Appearance> 
    29                 </TextBlock> 
    30             </AxisLabel> 
    31         </YAxis2> 
    32         <XAxis AutoScale="False" DataLabelsColumn="Month_Year" MaxValue="0" MinValue="0" Step="1">  
    33             <Appearance MajorTick-Color="Black">  
    34                 <LabelAppearance RotationAngle="90">  
    35                 </LabelAppearance> 
    36                 <TextAppearance TextProperties-Color="Black">  
    37                 </TextAppearance> 
    38                 <MajorGridLines Color="DimGray" Visible="False" /> 
    39             </Appearance> 
    40             <Items> 
    41                 <telerik:ChartAxisItem> 
    42                     <TextBlock Text="abc">  
    43                     </TextBlock> 
    44                 </telerik:ChartAxisItem> 
    45                 <telerik:ChartAxisItem> 
    46                     <TextBlock Text="abc">  
    47                     </TextBlock> 
    48                 </telerik:ChartAxisItem> 
    49                 <telerik:ChartAxisItem> 
    50                     <TextBlock Text="abc">  
    51                     </TextBlock> 
    52                 </telerik:ChartAxisItem> 
    53                 <telerik:ChartAxisItem> 
    54                     <TextBlock Text="abc">  
    55                     </TextBlock> 
    56                 </telerik:ChartAxisItem> 
    57                 <telerik:ChartAxisItem> 
    58                     <TextBlock Text="abc">  
    59                     </TextBlock> 
    60                 </telerik:ChartAxisItem> 
    61                 <telerik:ChartAxisItem> 
    62                     <TextBlock Text="abc">  
    63                     </TextBlock> 
    64                 </telerik:ChartAxisItem> 
    65                 <telerik:ChartAxisItem> 
    66                     <TextBlock Text="abc">  
    67                     </TextBlock> 
    68                 </telerik:ChartAxisItem> 
    69             </Items> 
    70             <AxisLabel> 
    71                 <TextBlock> 
    72                     <Appearance TextProperties-Font="Verdana, 9.75pt, style=Bold">  
    73                     </Appearance> 
    74                 </TextBlock> 
    75             </AxisLabel> 
    76         </XAxis> 
    77     </PlotArea> 
    78     <ChartTitle> 
    79         <TextBlock Text="ALOS">  
    80             <Appearance TextProperties-Color="White" TextProperties-Font="Verdana, 14.25pt, style=Bold">  
    81             </Appearance> 
    82         </TextBlock> 
    83         <Appearance Border-Color="64, 64, 64" Corners="Round, Round, Round, Round, 3" Dimensions-Margins="4%, 10px, 14px, 0%" 
    84             Position-AlignedPosition="Top" Position-Auto="False" Position-X="93.73032" Position-Y="5">  
    85             <FillStyle MainColor="177, 183, 144">  
    86             </FillStyle> 
    87         </Appearance> 
    88     </ChartTitle> 
    89     <Series> 
    90         <telerik:ChartSeries DataYColumn="Cost_Universal" Name="All Groups" Type="Line">  
    91             <Appearance> 
    92                 <LabelAppearance Visible="False">  
    93                 </LabelAppearance> 
    94                 <FillStyle MainColor="199, 243, 178">  
    95                 </FillStyle> 
    96             </Appearance> 
    97         </telerik:ChartSeries> 
    98         <telerik:ChartSeries DataYColumn="Cost_Client" Name="Selected Group" Type="Line">  
    99             <Appearance> 
    100                 <LabelAppearance Visible="False">  
    101                 </LabelAppearance> 
    102                 <FillStyle MainColor="253, 226, 0">  
    103                 </FillStyle> 
    104             </Appearance> 
    105         </telerik:ChartSeries> 
    106     </Series> 
    107     <Appearance Border-Color="117, 117, 117">  
    108         <FillStyle FillType="Gradient" MainColor="244, 244, 234" SecondColor="167, 172, 137">  
    109         </FillStyle> 
    110     </Appearance> 
    111     <Legend> 
    112         <Appearance Border-Color="64, 64, 64" Corners="Round, Round, Round, Round, 3" Dimensions-Margins="18%, 1%, 1px, 1px" 
    113             Position-AlignedPosition="Bottom">  
    114             <FillStyle MainColor="177, 183, 144">  
    115             </FillStyle> 
    116         </Appearance> 
    117     </Legend> 
    118 </telerik:RadChart> 
  7. Sypher
    Sypher avatar
    79 posts
    Member since:
    Aug 2006

    Posted 26 Feb 2008 Link to this post

    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.
  8. Sypher
    Sypher avatar
    79 posts
    Member since:
    Aug 2006

    Posted 26 Feb 2008 Link to this post

    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.
  9. Norsten
    Norsten avatar
    53 posts
    Member since:
    Feb 2007

    Posted 26 Feb 2008 Link to this post

    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.

  10. Matthew Erwin
    Matthew Erwin avatar
    24 posts
    Member since:
    Jan 2008

    Posted 26 Feb 2008 Link to this post

    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;  
            }  
        } 
  11. Sopheap Ly
    Sopheap Ly avatar
    12 posts
    Member since:
    Oct 2006

    Posted 26 Feb 2008 Link to this post

    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>

  12. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 27 Feb 2008 Link to this post

    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
  13. Sopheap Ly
    Sopheap Ly avatar
    12 posts
    Member since:
    Oct 2006

    Posted 29 Feb 2008 Link to this post

    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.
  14. Andrea
    Andrea avatar
    64 posts
    Member since:
    Jan 2005

    Posted 04 Mar 2008 Link to this post

    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


  15. Andrea
    Andrea avatar
    64 posts
    Member since:
    Jan 2005

    Posted 04 Mar 2008 Link to this post

    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.
  16. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 05 Mar 2008 Link to this post

    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
  17. Andrea
    Andrea avatar
    64 posts
    Member since:
    Jan 2005

    Posted 05 Mar 2008 Link to this post

    Thanks!

    This solved the problem.


    Regards.
  18. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 05 Mar 2008 Link to this post

     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

  19. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 06 Mar 2008 Link to this post

    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
  20. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 06 Mar 2008 Link to this post

    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"/>


  21. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 07 Mar 2008 Link to this post

    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
  22. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 07 Mar 2008 Link to this post

    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

  23. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 11 Mar 2008 Link to this post

    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
  24. david
    david avatar
    210 posts
    Member since:
    May 2007

    Posted 11 Mar 2008 Link to this post

    Thats it and solved the problem.

    Thank you.

    regards
  25. damien jorgensen
    damien jorgensen avatar
    10 posts
    Member since:
    Oct 2005

    Posted 26 Mar 2008 Link to this post

    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

  26. Konstantin Petkov
    Admin
    Konstantin Petkov avatar
    1911 posts

    Posted 27 Mar 2008 Link to this post

    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
  27. damien jorgensen
    damien jorgensen avatar
    10 posts
    Member since:
    Oct 2005

    Posted 27 Mar 2008 Link to this post

    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

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017