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

AG_E_UNKNOWN_ERROR After Upgrading from Q3.1103 to Q3.1314

2 Answers 56 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kirill Prokopenko
Top achievements
Rank 1
Kirill Prokopenko asked on 09 Mar 2010, 11:27 PM
Hello,

I'm having a issue getting 'AG_E_UNKNOWN_ERROR' after upgrading the Telerik libs from Q3.1103 to Q3.1314.  I've tried repeated attempts at debugging but am unable to get any clearer a message than the following:

System.Windows.Markup.XamlParseException occurred
  Message="AG_E_UNKNOWN_ERROR [Line: 37 Position: 30]"
  LineNumber=37
  LinePosition=30
  StackTrace:
       at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
       at Foo.Controls.ThemeSelector.InitializeComponent()
       at Foo.Controls.ThemeSelector..ctor()
  InnerException: 

This is the XAML it's trying to parse:

<UserControl
    x:Class="Foo.Controls.ThemeSelector"
    
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
    Margin="3,0,3,0">
    
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <TextBlock Grid.Column="0" Text="Theme" VerticalAlignment="Center" />
        <telerik:RadComboBox Grid.Column="1" x:Name="comboThemes" VerticalAlignment="Center" SelectionChanged="ComboThemes_SelectionChanged" 
                             Margin="3,0,0,0">
            <telerik:RadComboBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Name}">
                        <ToolTipService.ToolTip>
                            <ToolTip BorderThickness="1" BorderBrush="DarkGray">
                                <ToolTip.Effect>
                                    <DropShadowEffect BlurRadius="20" ShadowDepth="5" />
                                </ToolTip.Effect>
                                <Image Source="{Binding Thumbnail}" />
                            </ToolTip>
                        </ToolTipService.ToolTip>
                    </TextBlock>
                </DataTemplate>
            </telerik:RadComboBox.ItemTemplate>
        </telerik:RadComboBox>
        <TextBlock x:Name="labelColorScheme" Grid.Column="2" Text="Color Scheme" VerticalAlignment="Center" Margin="3,0,0,0" Visibility="Collapsed" />
        <telerik:RadComboBox Grid.Column="3" x:Name="comboColorSchemes" VerticalAlignment="Center" SelectionChanged="ComboThemes_SelectionChanged" 
                             Margin="3,0,0,0" Visibility="Collapsed">
            <telerik:RadComboBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Name}">
                        <ToolTipService.ToolTip>
                            <ToolTip BorderThickness="1" BorderBrush="DarkGray">
                                <ToolTip.Effect>
                                    <DropShadowEffect BlurRadius="20" ShadowDepth="5" />
                                </ToolTip.Effect>
                                <Image Source="{Binding Thumbnail}" />
                            </ToolTip>
                        </ToolTipService.ToolTip>
                    </TextBlock>
                </DataTemplate>
            </telerik:RadComboBox.ItemTemplate>
        </telerik:RadComboBox>

    </Grid>
</UserControl>

The position where the parse exception says it is coming from is right after closing of the first telerik:RadComboBox element.

Any help you can provide would be appreciated,

2 Answers, 1 is accepted

Sort by
0
Accepted
Valeri Hristov
Telerik team
answered on 11 Mar 2010, 10:40 AM
Hi Ibrahim,

Do you use a custom theme/style for RadComboBox? It is possible that in the custom theme you are using a property that is now deleted, hence the error. Could you open a new support ticket and send me a simple application that could be used to observe the problem?

Kind regards,
Valeri Hristov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kirill Prokopenko
Top achievements
Rank 1
answered on 06 Apr 2010, 11:04 PM
Hi again!

Yes, the problem was in custom theme that was based on a Telerik theme from a previous version.

Thanks!
Tags
ComboBox
Asked by
Kirill Prokopenko
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Kirill Prokopenko
Top achievements
Rank 1
Share this question
or