Copied to clipboard

Flag this post as spam?

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


  • Onno Sloof 23 posts 43 karma points
    Aug 18, 2015 @ 08:10
    Onno Sloof
    0

    contentService.GetChildren "Invalid Type: A Mapper could not be resolved based on the passed in Type"

    Hi,

    I've a console app to import items from a xml file into Umbraco. Before import I check existing items with contentService.GetChildren(int Id).

    I upgraded Umbraco to 7.2.8, and now I'm getting exception "Invalid Type: A Mapper could not be resolved based on the passed in Type".

    contentService.CountChildren(int Id) gives me the right amount of children so I know the items are there.

    Stacktrace:

    at Umbraco.Core.Persistence.Mappers.MappingResolver.<>c__DisplayClass1.<ResolveMapperByType>b__0(Type type1)
       at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
       at Umbraco.Core.Persistence.Mappers.MappingResolver.ResolveMapperByType(Type type)
       at Umbraco.Core.Persistence.Querying.ModelToSqlExpressionHelper`1..ctor()
       at Umbraco.Core.Persistence.Querying.Query`1.Where(Expression`1 predicate)
       at Umbraco.Core.Services.ContentService.GetChildren(Int32 id)
    

    What's wrong?

    Onno

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies