Copied to clipboard

Flag this post as spam?

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


  • Fahad 4 posts 24 karma points
    Nov 28, 2014 @ 12:55
    Fahad
    0

    Umbraco 7 is not loading MemberTypes

    I have upgraded Umbraco 4.11 to Umbraco 7.1.8 successfully. Everything is working fine but when I tried to access Member Types in umbraco panel i am getting error. enter image description here

    When I am checking the error details in Firebug it is following :

    {"Message":"An error has occurred.","ExceptionMessage":"An item with the same key has already been added.","ExceptionType":"System.ArgumentException","StackTrace":" at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)\r\n at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)\r\n at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value)\r\n at Umbraco.Core.Persistence.Factories.MemberTypeReadOnlyFactory.GetPropertyTypes(MemberTypeReadOnlyDto dto, MemberType memberType, Dictionary2 standardProps)\r\n at Umbraco.Core.Persistence.Factories.MemberTypeReadOnlyFactory.BuildEntity(MemberTypeReadOnlyDto dto)\r\n at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext()\r\n at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()\r\n at System.Linq.Buffer1..ctor(IEnumerable1 source)\r\n at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source)\r\n at Umbraco.Core.Persistence.Repositories.RepositoryBase2.GetAll(TId[] ids)\r\n at Umbraco.Core.Services.MemberTypeService.GetAll(Int32[] ids)\r\n at umbraco.cms.businesslogic.member.MemberType.getGetAll()\r\n at umbraco.loadMemberTypes.Render(XmlDocument& Tree)\r\n at umbraco.loadMemberTypes.Render(XmlTree& tree)\r\n at Umbraco.Web.Trees.ApplicationTreeExtensions.TryGetXmlTree(ApplicationTree appTree, String id, FormDataCollection formCollection)\r\n at Umbraco.Web.Trees.ApplicationTreeExtensions.TryLoadFromLegacyTree(ApplicationTree appTree, String id, FormDataCollection formCollection, UrlHelper urlHelper, String currentSection)\r\n at Umbraco.Web.Trees.LegacyTreeController.GetTreeNodes(String id, FormDataCollection queryStrings)\r\n at Umbraco.Web.Trees.TreeControllerBase.GetNodes(String id, FormDataCollection queryStrings)\r\n at lambdamethod(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>cDisplayClass13.c(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.<>cDisplayClass5.4()\r\n at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func1 func, CancellationToken cancellationToken)"}

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 28, 2014 @ 13:03
    Jan Skovgaard
    0

    Hi Fahad

    What steps have you taken in order to do the upgrade between the versions? Please ellaborate a bit more details about the steps.

    There has been made a lot of changes under the helmet between the versions of course. In regards to members there was a new member API introduced in v7.1, which was back ported to v6.2 as well.

    So perhaps it has something to do with this? Are you using the Umbraco API to do something with members perhaps? Or are you using a datatype/property editor on the members, which is not supported in v7?

    If you have not done it already then please consult the upgrade documentation to ensure the steps have been followed http://our.umbraco.org/documentation/Installation/Upgrading/ - Did you also merge files in the /config/ folder?

    Also make sure to read this documentation about upgrading to v7 in particular. http://our.umbraco.org/documentation/Installation/Upgrading/v7-upgrade

    And has the web.config been merged as well?

    Looking forward hearing from you.

    /Jan

  • Heather Floyd 609 posts 1031 karma points MVP 6x c-trib
    Apr 21, 2016 @ 23:58
    Heather Floyd
    0

    I have just run into this error myself - with a site which was upgraded from an earlier version 7 to the latest version 7.4.3. We aren't using Members on the site, but this error was showing up when using the Umbraco ModelsBuilder "Run Custom Tool" in VS.

    The site is running on UaaS, but not sure if that is relevant.

    If I look into the DB tables directly:

    • dbo.cmsMember2MemberGroup = no records
    • dbo.cmsMember = no records
    • dbo.cmsMemberType = no records

    So, I'm not sure where the duplicates are coming from.

  • Heather Floyd 609 posts 1031 karma points MVP 6x c-trib
    Apr 22, 2016 @ 00:45
    Heather Floyd
    1

    Ah, seems I have found the duplicates - in table "dbo.cmsPropertyType" all the "umbracoMember...' properties were duplicated. Not sure how that happened... but deleting the extra rows seems to have resolved the issue.

Please Sign in or register to post replies

Write your reply to:

Draft