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

Can't get Chart To Work without error

2 Answers 40 Views
Chart
This is a migrated thread and some comments may be shown as answers.
heavywoody
Top achievements
Rank 1
heavywoody asked on 23 Dec 2009, 01:46 AM
I am using RadControls For Silverlight 2009.3.  All the other controls work fine.  But if I add a chart control anywhere, it causes an error of:
AG_E_UNKNOWN_ERROR [Line: 13 Position: 35] 

If I drill into the details, it says:

{System.Windows.Markup.XamlParseException: AG_E_UNKNOWN_ERROR [Line: 13 Position: 35]
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at CRMDashboard.Controls.MarketingExpeditures.InitializeComponent()
   at CRMDashboard.Controls.MarketingExpeditures..ctor()}

This happens whether I create the chart in XAML or code.  And I am doing a very basic setup.  Here is the code for my XAML page with no code behind:

<

 

UserControl

 

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

xmlns:Telerik_Windows_Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting" x:Class="CRMDashboard.Controls.Test"

 

 

Width="400" Height="300">

 

 

 

<Grid x:Name="LayoutRoot" Background="White">

 

 

 

<Telerik_Windows_Controls:RadChart/>

 

 

 

 

</Grid>

 

</

 

UserControl>

 


I have tried to remove the Telerik references and readd the references.    I have rebooted.  I simply cannot get a chart to work.  Obviously, it is something on my system or configuration, but I don't know what. I am using Visual Studio 2008 SP1, latest Silverlight Toolkit, RIA.

2 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 23 Dec 2009, 04:10 PM
Hello Christian Loepp,

We are unsure why you are experiencing problems with the RadChart control -- the only prerequisite for the correct operation of the control is that your project should have references to the following 3 assemblies:

  • Telerik.Windows.Controls.Charting.dll
  • Telerik.Windows.Controls.dll
  • Telerik.Windows.Data.dll

We have attached a sample runnable application that works seamlessly on our end -- could you verify if it works on your end as well? Could you open a formal support ticket and send us a sample application that produces the erroneous behavior on your workstation?

Looking forward to your reply.


Sincerely yours,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
heavywoody
Top achievements
Rank 1
answered on 23 Dec 2009, 05:46 PM
Ok, so the solution you sent me works fine on my box.  In fact, if I create a new Silverligth application, it works fine.  But for some reason, in the configuration I have it doesn't work.  I did submit a ticket with the full project so perhaps you can see what it is clashing with.
Tags
Chart
Asked by
heavywoody
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
heavywoody
Top achievements
Rank 1
Share this question
or