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

Issue: ProvideMetadataAttribute

19 Answers 305 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 15 Jan 2010, 12:52 PM
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

19 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 21 Jan 2010, 07:05 AM
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.
0
Thomas
Top achievements
Rank 1
answered on 21 Jan 2010, 10:15 AM
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.
0
Steffen
Top achievements
Rank 1
Veteran
answered on 03 Mar 2010, 11:19 AM
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
0
Stefan Dobrev
Telerik team
answered on 08 Mar 2010, 08:13 AM
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.
0
Steffen
Top achievements
Rank 1
Veteran
answered on 08 Mar 2010, 01:18 PM
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
0
PW
Top achievements
Rank 1
answered on 12 Mar 2010, 10:56 PM
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>

 



0
GreenB
Top achievements
Rank 2
answered on 15 Mar 2010, 02:39 AM
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?
0
Steffen
Top achievements
Rank 1
Veteran
answered on 16 Mar 2010, 04:12 PM
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
0
Rosi
Telerik team
answered on 18 Mar 2010, 01:06 PM
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.
0
Steffen
Top achievements
Rank 1
Veteran
answered on 18 Mar 2010, 04:39 PM
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
0
PW
Top achievements
Rank 1
answered on 18 Mar 2010, 05:42 PM
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
0
Steffen
Top achievements
Rank 1
Veteran
answered on 19 Mar 2010, 05:35 PM
Hi,
uninstalling the old version did not help.
Still the same issue.

Best Regards
Steffen
0
p p
Top achievements
Rank 1
answered on 20 Mar 2010, 08:19 AM
1.copy the directory to another location!
2.uninstall the production
3,reopen in vs2008
0
Steffen
Top achievements
Rank 1
Veteran
answered on 01 Apr 2010, 09:21 AM
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
0
Aurore
Top achievements
Rank 1
answered on 02 Apr 2010, 11:10 AM
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
0
Ujjwal Lahoti
Top achievements
Rank 1
answered on 02 Apr 2010, 08:37 PM
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.



0
Hristo
Telerik team
answered on 07 Apr 2010, 10:24 AM
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.
0
Ujjwal Lahoti
Top achievements
Rank 1
answered on 07 Apr 2010, 09:20 PM
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.



0
Valentin.Stoychev
Telerik team
answered on 12 Apr 2010, 03:45 PM
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.
Tags
GridView
Asked by
Thomas
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Thomas
Top achievements
Rank 1
Steffen
Top achievements
Rank 1
Veteran
PW
Top achievements
Rank 1
GreenB
Top achievements
Rank 2
Rosi
Telerik team
p p
Top achievements
Rank 1
Aurore
Top achievements
Rank 1
Ujjwal Lahoti
Top achievements
Rank 1
Hristo
Telerik team
Valentin.Stoychev
Telerik team
Share this question
or