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

Exception "Failed to assign to property"

7 Answers 131 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Shawn Burke
Top achievements
Rank 1
Shawn Burke asked on 13 May 2011, 05:16 PM
Hi there,

I've tried the latest hotfix (RadControls_for_Silverlight_4_2011_1_0510_DEV_hotfix) and run into exception:

Failed to assign to property 'System.Windows.Setter.Value'. [Line: 33 Position: 12]<br>
   at MS.Internal.XcpImports.CreateFromXaml(UnmanagedMemoryStream stream, String sourceAssemblyName, Boolean createNamescope, Boolean requireDefaultNamespace, Boolean allowEventHandlers)<
br>


<UserControl x:Class="RadTreeView0510.MainPage"
    xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation">
 
    <Grid x:Name="LayoutRoot" Background="White">
                <telerikNavigation:RadTreeView/>
        </Grid>
</UserControl>

Thanks

7 Answers, 1 is accepted

Sort by
0
Richard Iwasa
Top achievements
Rank 1
answered on 13 May 2011, 10:01 PM
I'm running into the same error with the same hotfix version, but with the RadOutlookBar control.

FYI, my name space declaration was:
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

I also tried:
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"



but with no effect.
0
Richard Iwasa
Top achievements
Rank 1
answered on 13 May 2011, 10:29 PM
Tried a simple Silverlight application, added references to Telerik.Windows.Controls and Telerik.Windows.Controls.Navigation out of the hotfix build, added a RadOutlookBar to the MainPage.xaml by dragging from the toolbar, and saw the attached error. Was able to build and run, but on load of MainPage.xaml, got the error below. Tried with RadTreeView as well, and got the same error.

System.Windows.Markup.XamlParseException occurred
  Message=Set property 'System.Windows.FrameworkElement.Style' threw an exception. [Line: 10 Position: 25]
  LineNumber=10
  LinePosition=25
  StackTrace:
       at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
       at TelerikUpgrade501.MainPage.InitializeComponent()
       at TelerikUpgrade501.MainPage..ctor()
  InnerException: System.Windows.Markup.XamlParseException
       Message=Failed to assign to property 'System.Windows.Setter.Value'. [Line: 33 Position: 12]
       LineNumber=33
       LinePosition=12
       StackTrace:
            at MS.Internal.XcpImports.CreateFromXaml(UnmanagedMemoryStream stream, String sourceAssemblyName, Boolean createNamescope, Boolean requireDefaultNamespace, Boolean allowEventHandlers)
            at System.Windows.Controls.Control.GetBuiltInStyle(IntPtr nativeTarget, IntPtr& nativeStyle)
       InnerException:
0
Ondrej
Top achievements
Rank 2
answered on 14 May 2011, 04:38 PM
I have same problem.
0
Richard Iwasa
Top achievements
Rank 1
answered on 17 May 2011, 03:32 PM
I filed a support ticket and got access to the 516 hotfix build which fixes the problem.
0
Shawn Burke
Top achievements
Rank 1
answered on 17 May 2011, 04:07 PM
Thanks man
0
Oliver
Top achievements
Rank 1
answered on 18 May 2011, 06:38 PM
i have this problem .
please help me.
0
Petar Mladenov
Telerik team
answered on 20 May 2011, 03:25 PM
Hi Oliver,

This problem is already fixed. Please test your application with the internal build 516 that you can download from your account page at www.telerik.com . Let us know if you need further help.

Regards,
Petar Mladenov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Shawn Burke
Top achievements
Rank 1
Answers by
Richard Iwasa
Top achievements
Rank 1
Ondrej
Top achievements
Rank 2
Shawn Burke
Top achievements
Rank 1
Oliver
Top achievements
Rank 1
Petar Mladenov
Telerik team
Share this question
or