Error when calling the method LoadLayout.

3 posts, 0 answers
  1. adriel silva
    adriel silva avatar
    9 posts
    Member since:
    May 2010

    Posted 22 Feb 2011 Link to this post


     calling the method LoadLayout, the application returns the following error ...

    Call :

    MemoryStream memoryStream = new MemoryStream(Encoding.UTF8.GetBytes(layout));

    Error :

    System.ArgumentException was caught
      Message=Value does not fall within the expected range.
           em MS.Internal.XcpImports.CheckHResult(UInt32 hr)
           em MS.Internal.XcpImports.Collection_InsertValue[T](PresentationFrameworkCollection`1 collection, UInt32 index, CValue value)
           em MS.Internal.XcpImports.Collection_InsertDependencyObject[T](PresentationFrameworkCollection`1 collection, UInt32 index, DependencyObject value)
           em System.Windows.PresentationFrameworkCollection`1.InsertDependencyObject(Int32 index, DependencyObject value)
           em System.Windows.Controls.UIElementCollection.InsertInternal(Int32 index, UIElement value)
           em System.Windows.PresentationFrameworkCollection`1.Insert(Int32 index, T value)
           em Telerik.Windows.Controls.RadDocking.InitializeSplitContainer(RadSplitContainer container)
           em Telerik.Windows.Controls.RadDocking.OnItemsChanged(NotifyCollectionChangedEventArgs e)
           em System.Windows.Controls.ItemsControl.OnItemCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
           em System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
           em System.Windows.Controls.ItemCollection.NotifyCollectionChanged(NotifyCollectionChangedEventArgs e)
           em System.Windows.Controls.ItemCollection.AddImpl(Object value)
           em System.Windows.Controls.ItemCollection.AddInternal(Object value)
           em System.Windows.PresentationFrameworkCollection`1.Add(T value)
           em Telerik.Windows.Controls.RadDocking.AddSplitContainer(RadSplitContainer radSplitContainer)
           em Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadDocking(XmlReader reader)
           em Telerik.Windows.Controls.RadDocking.LoadLayout(Stream source, Boolean raiseEventsIfNoSerializationTag)
           em Telerik.Windows.Controls.RadDocking.LoadLayout(Stream source)
           em Bipper.Shell.ShellView.<>c__DisplayClass4.<LoadLayout>b__3()

    Adriel Codeco
  2. adriel silva
    adriel silva avatar
    9 posts
    Member since:
    May 2010

    Posted 24 Feb 2011 Link to this post

    Please... anyone have any idea what might be happening?
    I'm worried that the closing date of a version of the project is coming and is still occuring this error.

    the error is occurring after calling the event :
    Telerik.Windows.Controls.RadDocking.OnItemsChanged(NotifyCollectionChangedEventArgs e)

    when calling the method to follow in the event above:
    Telerik.Windows.Controls.RadDocking.InitializeSplitContainer(RadSplitContainer container)

    this seems to me an internal error.
  3. George
    George avatar
    1332 posts

    Posted 28 Feb 2011 Link to this post


    Please, refer to the following links:

    I hope you find them helpful. If it doesn't help, could you please give us some more information about your scenario? A sample code will be very helpful.


    All the best,
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top