Exception "Failed to assign to property"

8 posts, 0 answers
  1. Shawn Burke
    Shawn Burke avatar
    13 posts
    Member since:
    Sep 2009

    Posted 13 May 2011 Link to this post

    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
  2. Richard Iwasa
    Richard Iwasa avatar
    5 posts
    Member since:
    Jun 2010

    Posted 13 May 2011 Link to this post

    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.
  3. DevCraft banner
  4. Richard Iwasa
    Richard Iwasa avatar
    5 posts
    Member since:
    Jun 2010

    Posted 13 May 2011 Link to this post

    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:
  5. Ondrej
    Ondrej avatar
    2 posts
    Member since:
    Oct 2010

    Posted 14 May 2011 Link to this post

    I have same problem.
  6. Richard Iwasa
    Richard Iwasa avatar
    5 posts
    Member since:
    Jun 2010

    Posted 17 May 2011 Link to this post

    I filed a support ticket and got access to the 516 hotfix build which fixes the problem.
  7. Shawn Burke
    Shawn Burke avatar
    13 posts
    Member since:
    Sep 2009

    Posted 17 May 2011 Link to this post

    Thanks man
  8. Oliver
    Oliver avatar
    39 posts
    Member since:
    Jun 2010

    Posted 18 May 2011 Link to this post

    i have this problem .
    please help me.
  9. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 20 May 2011 Link to this post

    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
Back to Top
DevCraft banner