Type reference cannot find type named ... MetroTouchTheme

3 posts, 0 answers
  1. Tim
    Tim avatar
    10 posts
    Member since:
    Apr 2012

    Posted 27 Aug 2012 Link to this post

    .NET 4.0
    Telerik.Windows.Controls v4.0.30319

    During design time, RadPaneGroup throws an exception, but the application builds and runs successfully. Very rarely, the designer will load successfully. The exception thrown in the designer is shown as a flyout panel within the designer stage area and is as follows:

    Type reference cannot find type named '{clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls}MetroTouchTheme'.
       at MS.Internal.Xaml.Context.ObjectWriterContext.ServiceProvider_Resolve(String qName)
       at MS.Internal.Xaml.ServiceProviderContext.System.Windows.Markup.IXamlTypeResolver.Resolve(String qName)
       at System.Windows.Markup.TypeTypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
       at System.Windows.Baml2006.TypeConverterMarkupExtension.ProvideValue(IServiceProvider serviceProvider)
       at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)

    Here's the XAML:

    <Window x:Class="ININ.PSO.MiniClient.Main.UI.Media_Desktop.MediaDesktop"
            xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
            Title="Media Desktop" Height="569" Width="858"
            Loaded="Window_Loaded" Icon="/Images/16/window_sidebar.png">
        <Grid>
            <telerik:RadDocking Name="radDocking" Background="AliceBlue">
                <telerik:RadDocking.DocumentHost>
                    <telerik:RadSplitContainer>
                        <telerik:RadPaneGroup>
                            <telerik:RadPane Header="WAW 1">
                                <TextBlock Text="Some Text" />
                            </telerik:RadPane>
                        </telerik:RadPaneGroup>
                    </telerik:RadSplitContainer>
                </telerik:RadDocking.DocumentHost>
            </telerik:RadDocking>
        </Grid>
    </Window>

    To my knowledge, I am not using metro for anything. Does anyone have any ideas?
  2. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 03 Sep 2012 Link to this post

    Hello Tim,

    The error is related to the new Metro_Touch theme that we are developing, but is still not released. Although it is created in different branch, maybe there is some wrong merge that is causing the mess up.

    I tested the code you have send us but I didn't get the design time error. Could you please provide some more info on the themes and binaries you are using or you can send us a sample project where the error can be reproduced, as we are not able to figure out what is wrong from the StackTrace.

    Regards,
    Boyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Tim
    Tim avatar
    10 posts
    Member since:
    Apr 2012

    Posted 06 Sep 2012 Link to this post

    It turns out that the references were not referenced properly. For some reason, some of the libraries were referenced in my Windows user's roaming profile and some were referenced in the Telerik install directory. Deleting the references that were pointed to the roaming profile location and re-adding them from the add references window added them pointing to the Telerik install directory, and everything works fine now. 
Back to Top