Initialization error

13 posts, 0 answers
  1. Craig
    Craig avatar
    112 posts
    Member since:
    Nov 2011

    Posted 11 Jan 2013 Link to this post

    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

  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 15 Jan 2013 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Craig
    Craig avatar
    112 posts
    Member since:
    Nov 2011

    Posted 15 Jan 2013 Link to this post

    Hi Ivan,
    Yes it is referenced.

    Craig
  5. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 15 Jan 2013 Link to this post

    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.

  6. Craig
    Craig avatar
    112 posts
    Member since:
    Nov 2011

    Posted 15 Jan 2013 Link to this post

    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
  7. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 15 Jan 2013 Link to this post

    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.

  8. Craig
    Craig avatar
    112 posts
    Member since:
    Nov 2011

    Posted 15 Jan 2013 Link to this post

    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
  9. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 16 Jan 2013 Link to this post

    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.

  10. Craig
    Craig avatar
    112 posts
    Member since:
    Nov 2011

    Posted 17 Jan 2013 Link to this post

    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
  11. Craig
    Craig avatar
    112 posts
    Member since:
    Nov 2011

    Posted 12 Feb 2013 Link to this post

    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
  12. Kunal Chowdhury
    Kunal Chowdhury avatar
    23 posts
    Member since:
    May 2010

    Posted 18 Mar 2013 Link to this post

    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
  13. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 18 Mar 2013 Link to this post

    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.

  14. Kunal Chowdhury
    Kunal Chowdhury avatar
    23 posts
    Member since:
    May 2010

    Posted 18 Mar 2013 Link to this post

    Ah sorry, didn't notice that. I will surely post it there.
Back to Top
UI for WPF is Visual Studio 2017 Ready