Cannot create an instance

2 posts, 0 answers
  1. Arpita
    Arpita avatar
    3 posts
    Member since:
    Jul 2014

    Posted 31 Jul 2014 Link to this post

    This is a part of my code.
     
     <ResourceDictionary>
                    <ResourceDictionary.MergedDictionaries>
                        <ResourceDictionary Source="../TelerikOrganizationalChart/Resources.xaml" />
                    </ResourceDictionary.MergedDictionaries>

                   
    <local:OrgChartViewModel x:Key="ViewModel" />

                    <!--<telerik:OrgChartViewModel x:Key="ViewModel"/>-->
                </ResourceDictionary>
            </FrameworkElement.Resources>

    I am getting this error:
    Cannot create an instance of "OrgChartViewModel".

    How can I solve this error?

    Let me know.

    Thanks,
    Arpita
  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 05 Aug 2014 Link to this post

    Hi Arpita,

    I guess the code snippet from your last reply is from our OrgChart demo. I tested it and I was not able to reproduce the reported behavior, this is why I attached a stand alone version of the OrgChart demo. Please give it a try and let me know if I am missing something.

    If this doesn't help can you please send me an isolated project that demonstrates the error? This will allow me to test it locally and investigate what is causing the issue.

    Thank you for any help you can provide.

    Regards,
    Martin
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. DevCraft banner
Back to Top