Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jamie Howarth 306 posts 773 karma points c-trib
    Nov 30, 2011 @ 16:50
    Jamie Howarth
    0

    "Failed to compare" stacktrace when adding workflow items

    HI guys,

    I get the following error when trying to add any workflow items to any of my forms:

    [NullReferenceException: Object reference not set to an instance of an object.]
       Umbraco.Forms.Core.Common.ProviderCollection`1.(T , T ) +9
       System.FunctorComparer`1.Compare(T x, T y) +19
       System.Collections.Generic.ArraySortHelper`1.SwapIfGreaterWithItems(T[] keys, IComparer`1 comparer, Int32 a, Int32 b) +91
       System.Collections.Generic.ArraySortHelper`1.QuickSort(T[] keys, Int32 left, Int32 right, IComparer`1 comparer) +58
       System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer) +93
    
    [InvalidOperationException: Failed to compare two elements in the array.]
       System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer) +330
       System.Array.Sort(T[] array, Int32 index, Int32 length, IComparer`1 comparer) +186
       System.Collections.Generic.List`1.Sort(Comparison`1 comparison) +108
       Umbraco.Forms.Core.Common.ProviderCollection`1.GetProviders() +448
       Umbraco.Forms.UI.Dialogs.editWorkflowDialog.Page_Load(Object sender, EventArgs e) +294
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +91
       umbraco.BasePages.BasePage.OnLoad(EventArgs e) +14
       System.Web.UI.Control.LoadRecursive() +74
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

    I did have two custom workflow items being developed, but I've now removed these from my source code and recompiled, and I still get this error even after recycling my app pool.

    Any help/advice appreciated.

    Best,

    Benjamin

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Nov 30, 2011 @ 17:46
    Sebastiaan Janssen
    0

    All I can think of is removing ALL foreign DLL's from the bin folder, do an IISReset and start adding them one by one. App pool recycle is sometimes not enough.

    Take a look at Contour Contrib workflows as well you might've forgotten stuff.

  • Jamie Howarth 306 posts 773 karma points c-trib
    Dec 01, 2011 @ 12:32
    Jamie Howarth
    0

    I'll give it a whirl - thanks Sebastiaan :-)

  • Jamie Howarth 306 posts 773 karma points c-trib
    Dec 01, 2011 @ 16:03
    Jamie Howarth
    0

    Found my problem - I'm a n00b... basically I'd added Courier references to the project but uninstalled Courier, then installed Contour, but not added all of the Contour references in my VS project, so I was missing Umbraco.Forms.Core.Providers.dll. #facepalm.

    Benjamin

  • David W. 159 posts 284 karma points c-trib
    Mar 25, 2013 @ 22:18
    David W.
    1

    For future refrence. I had this error and resolved it by adding the constructor as described here:http://our.umbraco.org/projects/umbraco-pro/contour/documentation/Developer/Extending-Contour/Adding-a-Type

Please Sign in or register to post replies

Write your reply to:

Draft