Glass.Mapper
Glass.Mapper copied to clipboard
Unable to cast object of type 'System.Guid' to type 'System.String'.
I'm getting Unable to cast object of type 'System.Guid' to type 'System.String'. when I use below SitecoreChildrenAttribute to get the children. [SitecoreChildren(InferType = true)] IEnumerable<SitecoreChildrenAttribute> Children { get; set; }
Error from Stack trace:
[MapperException: Failed to map property TemplateId on Glass.Mapper.Sc.Configuration.Attributes.SitecoreChildrenAttribute] Glass.Mapper.Configuration.AbstractTypeConfiguration.MapPropertiesToObject(Object obj, IAbstractService service, AbstractTypeCreationContext context)