AG_E_UNKNOWN_ERROR After Upgrading from Q3.1103 to Q3.1314

3 posts, 1 answers
  1. Kirill Prokopenko
    Kirill Prokopenko avatar
    11 posts
    Member since:
    Sep 2009

    Posted 09 Mar 2010 Link to this post

    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. Answer
    Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 11 Mar 2010 Link to this post

    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.
  3. DevCraft banner
  4. Kirill Prokopenko
    Kirill Prokopenko avatar
    11 posts
    Member since:
    Sep 2009

    Posted 06 Apr 2010 Link to this post

    Hi again!

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

    Thanks!
Back to Top