This question is locked. New answers and comments are not allowed.
Hello,
Recently the company upgraded the Telerik Silveright UI. And I realized our customized OrgDiagram was broken and threw the 'Object reference not set to an instance of an object' error in the xaml file.
So basically our OrgDiagram was a modified version of the OrgChart presented in Silverlight Demos http://demos.telerik.com/silverlight/#Diagrams/OrgChart, it uses a similar OrgCharViewModel.cs and declare in the xaml file as follow,
<UserControl.Resources>
<local:OrgChartViewModel x:Key="ViewModel" />
</UserControl.Resources>
<Grid x:Name="LayoutRoot" Background="Transparent" DataContext="{StaticResource ViewModel}">
...
</Grid>
And it throws the exception at <local:OrgChartViewModel x:Key="ViewModel" />. Meanwhile, in the other xaml file that uses the OrgDiagram as User Control throws a 'Catastrophic Failure (Exception from HRESULT: 0x8000FFFF(E_UNEXPECTED)), the invocation of the constructor on type that matches the specified binding threw an exception'.
I believe the OrgDiagram was working fine for a long time and I think the error occurs after we upgraded the Telerik UI.
So Why would it happen and how to resolve the issue?
Please let me know if you need any other info. for this issue.
Thank you for your assistance.
Recently the company upgraded the Telerik Silveright UI. And I realized our customized OrgDiagram was broken and threw the 'Object reference not set to an instance of an object' error in the xaml file.
So basically our OrgDiagram was a modified version of the OrgChart presented in Silverlight Demos http://demos.telerik.com/silverlight/#Diagrams/OrgChart, it uses a similar OrgCharViewModel.cs and declare in the xaml file as follow,
<UserControl.Resources>
<local:OrgChartViewModel x:Key="ViewModel" />
</UserControl.Resources>
<Grid x:Name="LayoutRoot" Background="Transparent" DataContext="{StaticResource ViewModel}">
...
</Grid>
And it throws the exception at <local:OrgChartViewModel x:Key="ViewModel" />. Meanwhile, in the other xaml file that uses the OrgDiagram as User Control throws a 'Catastrophic Failure (Exception from HRESULT: 0x8000FFFF(E_UNEXPECTED)), the invocation of the constructor on type that matches the specified binding threw an exception'.
I believe the OrgDiagram was working fine for a long time and I think the error occurs after we upgraded the Telerik UI.
So Why would it happen and how to resolve the issue?
Please let me know if you need any other info. for this issue.
Thank you for your assistance.