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
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:
|
Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET Version:2.0.50727.833
I have sent a sample project with this error to Telerik in a bug report.
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
<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> |
<%@ 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.
This is definitely a weird one.
(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 within the chart control.
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 |
for( int 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; |
} |
} |
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"> |
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
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.
Any suggestion?
Thanks.
p.s.: I have also the RadControls for ASP.NET installed
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.
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
This solved the problem.
Regards.
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
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
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"/>
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
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
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
Thank you.
regards
<system.webServer>
but the issue still remians
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
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