I am getting this error when debugging my application:- System.Windows.Markup.XamlParseException: 'Initialization of 'Telerik.Windows.Controls.RadPropertyGrid' threw an exception.' Line number '8' and line position '34'. ---> System.Xaml.XamlObjectWriterException: Set property 'System.Windows.ResourceDictionary.Source' threw an exception. ---> System.Windows.Markup.XamlParseException: Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception. ---> System.Xaml.XamlObjectWriterException: Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Telerik.Windows.Controls.Input, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The system cannot find the file specified. ...
This only happens when the RadPropertyGrid is the first and only Telerik control that is displayed/loaded.
I have another form that contains a RadComboBox and a RadGridView. If I display that first, close it then load the form with the RadPropertyGrid, the error does not occur.
So, I added a RadComboBox before the RadPropertyGrid in the XAML and the error goes away.
My application .Net 4, WPF, C# and is structured in MVVM style so the XAML code-behind is the default. However, the host application insists the WPF view (WPF user control) be presented in a Windows Forms user control so the container hierarchy is Windows Forms user control > element host > WPF user control.
I'm trialling RadControls for WPF 2012.3.1129.40.
Please can you suggest what I should check?
Thanks
Craig
12 Answers, 1 is accepted
Have you referenced Telerik.Windows.Controls.Input dll in your project? It is one of RadPropertyGrid's dependencies.
All the best,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Yes it is referenced.
Craig
Can you please check whether the Telerik assemblies are cached in the GAC?
Kind regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

The Openaccess and Reporting assemblies are in C:\Windows\Assembly.
Telerik.Windows.Controls.Input.dll and the others referenced by my project are in C:\Windows\Assembly\Download.
Is this to be expected?
Craig
Can you please add them to the assembly cache, instead of the download cache. Here is an article that explains how to add them in the GAC.
Kind regards,Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Thanks for the suggestion but is it really necessary? I want to use a 'copy file' deployment.
BTW, did you note that if a RadComboBox is also placed on the usercontrol, the error does not occur? Is this behaviour to be expected?
Craig
Would it be possible for you to send us a repro project that illustrates this exception, so that we would be able to debug it on our side?
Regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

I'm finding this difficult to reproduce.
I've created a new WinForms test host application but the error is not occurring.
I'll post back here when I have more information.
Regards
Craig

I've finally resolved this issue.
The host application required additional configuration information about the dependent DLLs.
This fixed the runtime error.
For debugging purposes in the host application I'll continue to use the hidden radcombobox in the XAML.
Craig

I am also facing the same issue just after upgrading to Silverlight version: 2012.3.1017.1050. What can I do to resolve this issue?
Regards,
Kunal
This thread was originally posted to address a problematic scenario in WPF. As far as I can see you are refering to completely different platform - Silverlight. May I ask you to open a new thread in the SL forum, providing some more extensive information on your case?
All the best,Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
