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

Type reference cannot find type named ... MetroTouchTheme

2 Answers 291 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 27 Aug 2012, 10:20 PM
.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 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 03 Sep 2012, 07:38 AM
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.

0
Tim
Top achievements
Rank 1
answered on 06 Sep 2012, 08:20 PM
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. 
Tags
Docking
Asked by
Tim
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Tim
Top achievements
Rank 1
Share this question
or