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

Initialization error

12 Answers 635 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 11 Jan 2013, 04:20 PM
Hi,
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

Sort by
0
Ivan Ivanov
Telerik team
answered on 15 Jan 2013, 03:08 PM
Hi Craig,

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.

0
Craig
Top achievements
Rank 1
answered on 15 Jan 2013, 03:13 PM
Hi Ivan,
Yes it is referenced.

Craig
0
Ivan Ivanov
Telerik team
answered on 15 Jan 2013, 03:16 PM
Hello,

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.

0
Craig
Top achievements
Rank 1
answered on 15 Jan 2013, 03:48 PM
Hi,
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
0
Ivan Ivanov
Telerik team
answered on 15 Jan 2013, 04:03 PM
Hi,

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.

0
Craig
Top achievements
Rank 1
answered on 15 Jan 2013, 04:19 PM
Hi Ivan,
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
0
Ivan Ivanov
Telerik team
answered on 16 Jan 2013, 08:48 AM
Hi,

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.

0
Craig
Top achievements
Rank 1
answered on 17 Jan 2013, 09:51 AM
Hi Ivan,
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
0
Craig
Top achievements
Rank 1
answered on 12 Feb 2013, 02:37 PM
Hi
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
0
Kunal Chowdhury
Top achievements
Rank 2
answered on 18 Mar 2013, 11:48 AM
Hi Ivan,

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
0
Ivan Ivanov
Telerik team
answered on 18 Mar 2013, 01:18 PM
Hello 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.

0
Kunal Chowdhury
Top achievements
Rank 2
answered on 18 Mar 2013, 02:02 PM
Ah sorry, didn't notice that. I will surely post it there.
Tags
PropertyGrid
Asked by
Craig
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Craig
Top achievements
Rank 1
Kunal Chowdhury
Top achievements
Rank 2
Share this question
or