+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Blog Posts Control Properties Error

Blog Posts Control Properties Error

2 posts, 0 answered
  1. Richard Baugh
    Richard Baugh avatar
    201 posts
    Registered:
    22 Aug 2012
    03 Aug 2010
    Link to this post
    I came across an issue with the blog post control. We were developing a site and had added a blog post control to the page. At the time there were two blogs created and both blogs where selected. This then added a condition to the filter expression of ParentID in (xxx,xxx). Later on, one of the blogs was deleted. The control still rendered the content correctly, but when trying to manage the controls properties, the control was throwing and error.

    Exception Type: System.InvalidOperationException
     
    Message: Failed to compare two elements in the array.
     
    Source: mscorlib
     
    Stack Trace:
       at System.Collections.Generic.GenericArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
       at System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer`1 comparer)
       at System.Collections.Generic.List`1.Sort(Int32 index, Int32 count, IComparer`1 comparer)
       at Telerik.Blogs.WebControls.Design.BlogPostsDesigner.SetBlogSelector()
       at Telerik.Blogs.WebControls.Design.BlogPostsDesigner.CreateChildControls()
       at System.Web.UI.Control.EnsureChildControls()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    ------------------------------------------------------------------------------------
    - L1 -------------------------------------------------------------------------------
     
    Exception Type: System.NullReferenceException
     
    Message: Object reference not set to an instance of an object.
     
    Source: Telerik.Blogs
     
    Stack Trace:
       at Telerik.Blogs.WebControls.Design.BlogPostsDesigner.GuidBlogComparer.Compare(Guid bl_a, Guid bl_b)
       at System.Collections.Generic.ArraySortHelper`1.SwapIfGreaterWithItems(T[] keys, IComparer`1 comparer, Int32 a, Int32 b)
       at System.Collections.Generic.ArraySortHelper`1.QuickSort(T[] keys, Int32 left, Int32 right, IComparer`1 comparer)
       at System.Collections.Generic.GenericArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)

    It seems that the condition in the filter expression was causing the error. I went into the DB and removed the ParentID condition and was then able to load up the control's properties. We are using SF 3.7 SP3. Not sure if this is something that can be fixed before the next SP release.
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    05 Aug 2010
    Link to this post
    Hello Richard Baugh,

    Thank you for contacting Telerik Support.

    This is definitely a bug in the system. We will log this issue for fixing and most probably the fix will be applied in the future service pack.

    Thank you for reporting this. I have updated your Telerik points.

    Sincerely yours,
    Radoslav Georgiev
    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
2 posts, 0 answered