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)
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:
What's wrong?
Onno
is working on a reply...