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

Cannot create an instance

1 Answer 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Arpita
Top achievements
Rank 1
Arpita asked on 31 Jul 2014, 06:19 PM
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

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 05 Aug 2014, 10:40 AM
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.
 
Tags
General Discussions
Asked by
Arpita
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or