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 Source="../TelerikOrganizationalChart/Resources.xaml" />

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

                    <!--<telerik:OrgChartViewModel x:Key="ViewModel"/>-->

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

    How can I solve this error?

    Let me know.

  2. Martin Ivanov
    Martin Ivanov avatar
    1442 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.

    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.
Back to Top