Copied to clipboard

Flag this post as spam?

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


  • Petr Snobelt 923 posts 1535 karma points
    Sep 04, 2012 @ 22:31
    Petr Snobelt
    0

    Cannot upgrade uComponents from 2.1.0.0 to 4

    When I replace uComponents.Core.dll (v 2.1.0.0) by version 4.0 uComponents controls stop working.

    I'm using umbraco v 4.7.0

    In Developer > Datatypes > any ucomponent  = error The given key was not present in the dictionary. *

    In Content section on Content using any uComponent datatype = error Object reference not set to an instance of an object. **

    Any ideas?

    Thank you

    Petr

     

    *Stack Trace

    [KeyNotFoundException: The given key was not present in the dictionary.]
       umbraco.cms.businesslogic.datatype.controls.Factory.GetNewObject(Guid DataEditorId) +325
       umbraco.cms.businesslogic.datatype.DataTypeDefinition.get_DataType() +378
       umbraco.cms.presentation.developer.editDatatype.Page_Load(Object sender, EventArgs e) +727
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       umbraco.BasePages.BasePage.OnLoad(EventArgs e) +19
       System.Web.UI.Control.LoadRecursive() +71
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3064

    **Stack Trace

    [NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.controls.ContentControl.addControlNew(Property p, TabPage tp, String Caption) +93
       umbraco.controls.ContentControl.CreateChildControls() +833
       System.Web.UI.Control.EnsureChildControls() +181
       umbraco.controls.ContentControl.OnInit(EventArgs e) +122
       System.Web.UI.Control.InitRecursive(Control namingContainer) +132
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +276
       umbraco.cms.presentation.editContent.OnInit(EventArgs e) +1004
       System.Web.UI.Control.InitRecursive(Control namingContainer) +132
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1969
  • Lee Kelleher 3972 posts 15390 karma points MVP 11x admin c-trib
    Sep 04, 2012 @ 22:36
    Lee Kelleher
    0

    Hi Petr,

    The error suggests that a data-type referenced in the doc-type can't be found in the assemblies/DLLs.  As far as I can recall we haven't removed any data-type, or changed the GUIDs between versions 2.x and 4.x.

    Wondering if any other changes have been made? Any other DLLs been cleaned-up? (Just checking)

    I'll double-check the changes between v2.x and v4 - make sure there's nothing obvious.

    Thanks, Lee.

  • Lee Kelleher 3972 posts 15390 karma points MVP 11x admin c-trib
    Sep 04, 2012 @ 22:41
    Lee Kelleher
    0

    Quick question... which data-types do you have on your doc-type? (might help me pin-point the underlying issue)

    Thanks, Lee.

  • Petr Snobelt 923 posts 1535 karma points
    Sep 04, 2012 @ 22:42
    Petr Snobelt
    0

    I try v 3.1.2.30715 and this version work.

    I change uComponents.Core.dll only.

     

  • Lee Kelleher 3972 posts 15390 karma points MVP 11x admin c-trib
    Sep 04, 2012 @ 22:46
    Lee Kelleher
    0

    Hmmm... trying to think what might have caused it.  Was the Umbraco instance itself a fresh install or an upgrade?

    If it was an Upgrade from v4.5.2 - then it might be that not all the DLLs were upgraded properly? (I'm completely guessing here) ... as that might cause an issue with uComponents 4.0, as it references Umbraco 4.6+ assemblies.

  • Petr Snobelt 923 posts 1535 karma points
    Sep 04, 2012 @ 22:51
    Petr Snobelt
    0

    Used components:

    Related Links with Media

    Multi-Node Tree Picker

    XPath checkbox List

  • Petr Snobelt 923 posts 1535 karma points
    Sep 07, 2012 @ 09:17
    Petr Snobelt
    0

    Hi Lee,

    Today someone (I expect you :-) publish Umbraco compatibility grid

    And it looks like umbraco 4.7.0 is not compatible with ucomponents 4?

    Can you post some details about this incompatibility?

     

    Thanks 

    Petr

     

  • Lee Kelleher 3972 posts 15390 karma points MVP 11x admin c-trib
    Sep 07, 2012 @ 11:24
    Lee Kelleher
    0

    Hi Petr,

    Found out that it was related to the Razor Model Binding we introduced for v4.0 ... seems there were underlying changes in the Umbraco core between v4.7.0 and v4.7.1.1.  So in order for us to support that feature (which was one of the new main features), we had to compile against v4.7.1.1.

    I know some of our documentation says that we'd support v4.6.1 - which I thought we could, I was wrong - my fault. :-(

    Sorry for confusions on this. (Our v3.x versions will work with Umbraco 4.7.0).

    Cheers, Lee

Please Sign in or register to post replies

Write your reply to:

Draft