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

[Solved] Error HRESULT E_FAIL has been returned from a call to a COM component.

1 Answer 133 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Lance
Top achievements
Rank 1
Lance asked on 06 Dec 2012, 04:05 AM
Hi!

I am new to using Telerik. I am getting frustrated because I am trying to use BarChart in my code but I am always encountering the error "Error HRESULT E_FAIL has been returned from a call to a COM component." in the InitializeComponent()

If it helps, sometimes it asks me to browse to a file named "ThemePallete.cs" or "PresenterBase.cs" but I am not sure where to find this.

Here is my code (just got from the QuickStart guide):

<telerik:RadCartesianChart x:Name="sampleChart" PaletteName="None">
        <telerik:RadCartesianChart.HorizontalAxis>
            <telerik:CategoricalAxis/>
        </telerik:RadCartesianChart.HorizontalAxis>
        <telerik:RadCartesianChart.VerticalAxis>
            <telerik:LinearAxis/>
        </telerik:RadCartesianChart.VerticalAxis>
        <telerik:LineSeries ItemsSource="{Binding}">
        </telerik:LineSeries>
    </telerik:RadCartesianChart>

public void InitializeData()
        {
            this.sampleChart.DataContext = new double[] { 20, 30, 50, 10, 60, 40, 20, 80 };
}

Hope you can help me! Thank you very much!

1 Answer, 1 is accepted

Sort by
0
Lance
Top achievements
Rank 1
answered on 06 Dec 2012, 05:17 AM
I managed to fix my problem. Turns out I was referencing the wrong DLL (I was referencing the one in ExtensionSDK) and I instead used the one in Binaries folder. I managed to fix it now.
Tags
General Discussions
Asked by
Lance
Top achievements
Rank 1
Answers by
Lance
Top achievements
Rank 1
Share this question
or