Issue: ProvideMetadataAttribute

20 posts, 0 answers
  1. Thomas
    Thomas avatar
    58 posts
    Member since:
    Jun 2009

    Posted 15 Jan 2010 Link to this post

    With the assemblies after 27-11-2009 I get the following errors under visual studio 2008:

    Could not load type 'Microsoft.Windows.Design.Metadata.ProvideMetadataAttribute' from assembly 'Microsoft.Windows.Design.Extensibility, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

    I can build and run the project without problems, but I can't load the xaml designer.

    Any ideas?

    Thomas

  2. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 21 Jan 2010 Link to this post

    Hi Thomas,

    Did you get the same error when you use the assemblies from our latest service pack release?

    Greetings,
    Stefan Dobrev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Thomas
    Thomas avatar
    58 posts
    Member since:
    Jun 2009

    Posted 21 Jan 2010 Link to this post

    Hi,
    I had the same problem with the latest release.
    I have now changed to  vs 2010 and .net 4.0 beta 2. With this configuration I don't get the error message anymore.
  5. Steffen
    Steffen avatar
    77 posts
    Member since:
    Mar 2009

    Posted 03 Mar 2010 Link to this post

    Hi,
    I got the same problem with the new beta.
    .NET 4.0/VS 2010 is currently no option for me.
    The weird thing is that it just occures with some xaml-files and I have no clue what causes this.
    When adding and deleting emty lines in the xaml sometimes the designer shows up for a short period of time.
    Also the error-position points to a standard-wpf-listbox (line: <ListBox.ItemTemplate>) which had no problems before.
    I'm using the RadGridView in datatemplates for standard-wpf-listboxes. Maybe it has to do something with this?
    Any ideas?
     
    Best Regards
    Steffen
  6. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 08 Mar 2010 Link to this post

    Hello Steffen,

    Did you get these issues if you try to use the latest internal build? Do you have a design folder, in the folder from which you are referencing telerik's assemblies?

    Kind regards,
    Stefan Dobrev
    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.
  7. Steffen
    Steffen avatar
    77 posts
    Member since:
    Mar 2009

    Posted 08 Mar 2010 Link to this post

    Hi,

    this morning the error "magically" disappeared (I think I did not change anything???).

    Testing with the latest 2009.3 internal build would be quite time consuming because I have a lot of projects in
    my solution which are referencing the dll's (and its working now).
    I don't have any design-folder, I just add the dll's to the project-references.
    If the error comes back, maybe I will recognize what causes this.


    Best Regards
    Steffen
  8. PW
    PW avatar
    13 posts
    Member since:
    May 2009

    Posted 12 Mar 2010 Link to this post

    I just updated to the Q1'10 release yesterday, and now I'm getting the same error.  I pasted the XAML below that it's complaining about.  We've got a column in a grid that puts a button in each row in that column in order to delete that row.

    Updating to .NET 4.0 is not an option, and I *do* have a design folder with lots of Telerik.Windows.Controls.*.Design.dll files in it.

    Thanks in advance for any suggestions on how we might resolve this problem.
    Darcy


     

     

    <telerik:GridViewColumn Header="Delete" IsVisible="True">

     

     

     

    <telerik:GridViewColumn.CellTemplate>

     

     

     

    <DataTemplate>

     

     

     

    <Button Width="18" Height="18" Margin="5,0" Command="ApplicationCommands.Delete" CommandParameter="{Binding}">

     

     

     

    <Button.Content>

     

     

     

    <Grid Width="8.083" Height="8.664" VerticalAlignment="Center" HorizontalAlignment="Center">

     

     

     

    <Path Fill="{x:Null}" Stretch="Fill" Stroke="#FF000000" Margin="0.083,0.664,0,0" Data="M0.50001547,0.5 L6.5000797,6.5000169 M6.5000155,0.5 L0.5,6.5000704" StrokeThickness="2"/>

     

     

     

    <Path Fill="#FFCE3527" Stretch="Fill" Stroke="#FFCD3527" Margin="0,0,0.083,0.664" Data="M0.50001547,0.5 L6.5000797,6.5000169 M6.5000155,0.5 L0.5,6.5000704" StrokeThickness="2"/>

     

     

     

    </Grid>

     

     

     

    </Button.Content>

     

     

     

    </Button>

     

     

     

    </DataTemplate>

     

     

     

    </telerik:GridViewColumn.CellTemplate>

     

     

     

    </telerik:GridViewColumn>

     



  9. GreenB
    GreenB avatar
    6 posts
    Member since:
    Aug 2012

    Posted 14 Mar 2010 Link to this post

    I met same error.

    I used VS2008 SP1 + .NET 3.5 on Telerik Q1 2010.

    Error 1 '/Microsoft.Windows.Design.Developer;component/themes/GridAdorners.xaml' value cannot be assigned to property 'Source' of object 'System.Windows.ResourceDictionary'. Cannot create instance of 'GenericTheme' defined in assembly 'Microsoft.Windows.Design.Interaction, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Exception has been thrown by the target of an invocation.    Error at object 'ResourceDictionary_4'. C:\Users\GreenB\Documents\Visual Studio 2008\Projects\ModelBox\AWI.ModelBox\MainWindow.xaml 5 5 AWI.ModelBox

    I try remove Telerik library from references then, error not raised. but I referenced them, error occurs.
    What can I do?
  10. Steffen
    Steffen avatar
    77 posts
    Member since:
    Mar 2009

    Posted 16 Mar 2010 Link to this post

    Hi,

    the error "magically" reappeared in some files!
    I need a solution for this.
    The VS-XAML-designer could be a lot better but working absolutely "blind" is really annoying.

    Best Regards
    Steffen
  11. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 18 Mar 2010 Link to this post

    Hello all,

    We are sorry for the late reply.

    I suggest you login to your accounts and download the following zip:
    http://www.telerik.com/downloads/productfiles/bacdb/VS2008_Design_Assemblies.zip

    Using these design assemblies with Q1 2010 should fix the problem.

    All the best,
    Rosi
    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.
  12. Steffen
    Steffen avatar
    77 posts
    Member since:
    Mar 2009

    Posted 18 Mar 2010 Link to this post

    Hi, 
    there weren't any design-dlls in my WPF-folder at all.
    I used the zipped version because I uninstalled the "install"-version after the new Project-Update-Wizard repeatedly crashed my VS (fatal .NET 2.0 error => I already had this problem with a lot of VS-AddIns).
    I still have 2009Q3 installed. Maybe VS took the wrong design-dlls?
    So far nothing changed. I will deinstall 2009Q tomorrow and see what happens.

    Best Regards
    Steffen
  13. PW
    PW avatar
    13 posts
    Member since:
    May 2009

    Posted 18 Mar 2010 Link to this post

    I downloaded the new assemblies and extracted them to the design folder, then fired up my solution in VS.  I'm still seeing the same error.  I removed the RadGridView and telerik namespace from the XAML, and I also removed the project references to the Telerik assemblies.  I then added everything back in and rebuilt the project - still no change.  Any other suggestions?
    Thanks,
    Darcy
  14. Steffen
    Steffen avatar
    77 posts
    Member since:
    Mar 2009

    Posted 19 Mar 2010 Link to this post

    Hi,
    uninstalling the old version did not help.
    Still the same issue.

    Best Regards
    Steffen
  15. p p
    p p avatar
    1 posts
    Member since:
    Feb 2010

    Posted 20 Mar 2010 Link to this post

    1.copy the directory to another location!
    2.uninstall the production
    3,reopen in vs2008
  16. Steffen
    Steffen avatar
    77 posts
    Member since:
    Mar 2009

    Posted 01 Apr 2010 Link to this post

    Hi,

    a new error is in town! When opening my solution the following output says hello to me:

    Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.VisualStudio.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to load metadata assembly Telerik.Windows.Controls.Charting.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.  Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..  Stack Trace:    at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
       at System.Reflection.Assembly.GetTypes()
       at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)Failed to load metadata assembly Telerik.Windows.Controls.DataVisualization.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.  Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..  Stack Trace:    at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
       at System.Reflection.Assembly.GetTypes()
       at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)Failed to load metadata assembly Telerik.Windows.Controls.Docking.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.  Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..  Stack Trace:    at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
       at System.Reflection.Assembly.GetTypes()
       at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Navigation.VisualStudio.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to load metadata assembly Telerik.Windows.Controls.Gauge.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.  Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..  Stack Trace:    at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
       at System.Reflection.Assembly.GetTypes()
       at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)Failed to load metadata assembly Telerik.Windows.Controls.GridView.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.  Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..  Stack Trace:    at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
       at System.Reflection.Assembly.GetTypes()
       at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Input.VisualStudio.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Scheduler.VisualStudio.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.VisualStudio.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to load metadata assembly Telerik.Windows.Controls.Charting.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.  Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..  Stack Trace:    at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
       at System.Reflection.Assembly.GetTypes()
       at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)Failed to load metadata assembly Telerik.Windows.Controls.DataVisualization.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.  Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..  Stack Trace:    at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
       at System.Reflection.Assembly.GetTypes()
       at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)Failed to load metadata assembly Telerik.Windows.Controls.Docking.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.  Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..  Stack Trace:    at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
       at System.Reflection.Assembly.GetTypes()
       at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Navigation.VisualStudio.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to load metadata assembly Telerik.Windows.Controls.Gauge.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.  Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..  Stack Trace:    at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
       at System.Reflection.Assembly.GetTypes()
       at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)Failed to load metadata assembly Telerik.Windows.Controls.GridView.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.  Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information..  Stack Trace:    at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark)
       at System.Reflection.Assembly.GetTypes()
       at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Input.VisualStudio.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.Failed to instantiate type Telerik.Windows.Controls.Design.Common.MetadataRegistrationBase during IRegisterMetadata load for metadata assembly Telerik.Windows.Controls.Scheduler.VisualStudio.Design, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7.

    Best Regards
    Steffen
  17. Aurore
    Aurore avatar
    58 posts
    Member since:
    Nov 2007

    Posted 02 Apr 2010 Link to this post

    Hello,

    I don't know if it can help, but I have the error when I use "RadRibbonComboBox"

    If i comment this using, all is ok, I can let the telerik dll and other telerik use in my code.

    Regards
    Aurore
  18. Ujjwal Lahoti
    Ujjwal Lahoti avatar
    67 posts
    Member since:
    Jan 2010

    Posted 02 Apr 2010 Link to this post

    Just wanted to add that I am getting similar error. I think the problem is something very basic with Telerik's controls. I am getting the error in a project where I am not using any of the Telerik's controls, I have just included them as a reference. And when I remove the reference to the Telerik's DLLs the error goes away.

    Here is the error message:
    Could not load type 'Microsoft.Windows.Design.Metadata.ProvideMetadataAttribute' from assembly 'Microsoft.Windows.Design.Extensibility, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Line '1' Position '1425'.

    And the interesting part is that, I didn't see the error the first time I add the control. After opening and closing the project, the problem appears. The problem is probably a mixture of Telerik and Microsoft. Telerik's controls are messing something with the Project settings, and then causing something outside the Telerik's controls to fail.

    This problem is really annoying, and makes me wonder if I should stick with Telerik or look elsewhere.



  19. Hristo
    Admin
    Hristo avatar
    408 posts

    Posted 07 Apr 2010 Link to this post

    Hello Ujjwal Lahoti,

    I am sorry to hear about your difficulties while using our controls. Please login to your accounts and download the following zip:
    http://www.telerik.com/downloads/productfiles/bacdb/VS2008_Design_Assemblies.zip

    Using these design assemblies with Q1 2010 should fix the problem. If this does not work try to upgrade with our latest internal build. If the problem still persist I would like to ask you to open a separate support ticket and attach there a sample project which demonstrates the problem to test it locally and provide you with further assistance.

    Regards,
    Hristo
    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.
  20. Ujjwal Lahoti
    Ujjwal Lahoti avatar
    67 posts
    Member since:
    Jan 2010

    Posted 07 Apr 2010 Link to this post

    This doesn't fix the problem.

    I haven't tried installing the Beta release, I will give it a try and see if they help.

    However I tried the recommendations of others in this thread, to upgrade to Studio 2010 and .Net Framework 4.0. The problem does go away there. I am not sure if this is a viable solution for me or not.

    There are other similar problems, look at the thread: http://www.telerik.com/community/forums/wpf/docking/could-not-create-an-instance-of-type-raddocking.aspx

    One of the engineers in Telerik was able to reproduce the issue, however there was no solution, only a work around.



  21. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 12 Apr 2010 Link to this post

    Hello Ujjwal Lahoti,

    There is a big launch event for the VS2010 this week. See more info here:
    http://www.pcmag.com/article2/0,2817,2362464,00.asp

    Please install the latest version and let us know if you still have problems.

    Kind regards,
    Valentin.Stoychev
    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.
Back to Top
UI for WPF is Visual Studio 2017 Ready