Copied to clipboard

Flag this post as spam?

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


  • Dan Evans 629 posts 1016 karma points
    Jul 04, 2022 @ 12:10
    Dan Evans
    0

    Upgrade to Umbraco 10 error

    I have upgraded to Umbraco 10.0.1 via Nuget and also upgraded uSkinned to 3.0.0 but now when I click any page in the tree this error appears

    An error occurred
    

    Sequence contains more than one matching element

    Exception Details System.InvalidOperationException, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e: Sequence contains more than one matching element Stacktrace at System.Linq.ThrowHelper.ThrowMoreThanOneMatchException() at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable1 source, Func2 predicate, Boolean& found) at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source, Func2 predicate) at Umbraco.Cms.Core.PropertyEditors.PropertyEditorCollection.getItem(String alias) at Umbraco.Cms.Core.Models.Mapping.ContentPropertyBasicMapper1.Map(IProperty property, TDestination dest, MapperContext context) at Umbraco.Cms.Core.Models.Mapping.ContentPropertyDisplayMapper.Map(IProperty originalProp, ContentPropertyDisplay dest, MapperContext context) at Umbraco.Cms.Core.Models.Mapping.ContentPropertyMapDefinition.Map(IProperty source, ContentPropertyDisplay target, MapperContext context) at Umbraco.Cms.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, Type sourceType, MapperContext context) at Umbraco.Cms.Core.Mapping.UmbracoMapper.Map[TSource,TTarget](TSource source, MapperContext context) at System.Linq.Enumerable.SelectIPartitionIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.ToList() at Umbraco.Cms.Core.Mapping.MapperContext.MapEnumerable[TSourceElement,TTargetElement](IEnumerable1 source) at Umbraco.Cms.Core.Models.Mapping.TabsAndPropertiesMapper.MapProperties(IContentBase content, List1 properties, MapperContext context) at Umbraco.Cms.Core.Models.Mapping.TabsAndPropertiesMapper1.Map(TSource source, MapperContext context) at Umbraco.Cms.Web.BackOffice.Mapping.ContentMapDefinition.Map(IContent source, ContentVariantDisplay target, MapperContext context) at Umbraco.Cms.Web.BackOffice.Mapping.ContentMapDefinition.Map(IContent source, ContentVariantScheduleDisplay target, MapperContext context) at Umbraco.Cms.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, Type sourceType, MapperContext context) at Umbraco.Cms.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, MapperContext context) at Umbraco.Cms.Core.Mapping.MapperContext.Map[TTarget](Object source) at Umbraco.Cms.Core.Models.Mapping.ContentVariantMapper.CreateVariantDisplay[TVariant](MapperContext context, IContent content, Language language, String segment) at Umbraco.Cms.Core.Models.Mapping.ContentVariantMapper.<>cDisplayClass301.<Map>b__0(Language language) at System.Linq.Enumerable.SelectListIterator2.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.ToList() at Umbraco.Cms.Core.Models.Mapping.ContentVariantMapper.Map[TVariant](IContent source, MapperContext context) at Umbraco.Cms.Web.BackOffice.Mapping.ContentMapDefinition.Map[TVariant](IContent source, ContentItemDisplay1 target, MapperContext context) at Umbraco.Cms.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, Type sourceType, MapperContext context) at Umbraco.Cms.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, MapperContext context) at Umbraco.Cms.Core.Mapping.UmbracoMapper.Map[TTarget](Object source, Action`1 f) at Umbraco.Cms.Web.BackOffice.Controllers.ContentController.MapToDisplayWithSchedule(IContent content) at Umbraco.Cms.Web.BackOffice.Controllers.ContentController.GetById(Int32 id) at lambdamethod1228(Closure , Object , Object[] ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

  • Marc Love (uSkinned.net) 432 posts 1691 karma points
    Jul 04, 2022 @ 12:33
    Marc Love (uSkinned.net)
    101

    Hi Dan,

    Delete contents of ~/App_Plugins/uSkinned to resolve your issue.

    Cheers,

    Marc

  • Dan Evans 629 posts 1016 karma points
    Jul 04, 2022 @ 14:01
    Dan Evans
    0

    Thanks Marc - that resolved the issue

  • Marc Love (uSkinned.net) 432 posts 1691 karma points
    Jul 04, 2022 @ 12:39
    Marc Love (uSkinned.net)
    1

    Also to add to this.

    Our recommended approach to upgrades from Umbraco 8 to 10 or Umbraco 9 to 10 is to create a new Umbraco 10 site first.

    See full guides here:

    Umbraco 9 to Umbraco 10

    https://uskinned.net/support/how-to-upgrade-from-uskinned-site-builder-for-umbraco-9-to-umbraco-10/

    Umbraco 8 to Umbraco 10

    https://uskinned.net/support/how-to-upgrade-from-uskinned-site-builder-for-umbraco-8-to-umbraco-10/

    Cheers,

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft