Copied to clipboard

Flag this post as spam?

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


  • Scott 8 posts 109 karma points
    Jan 19, 2018 @ 14:25
    Scott
    0

    AutoMapper Error in version 7.7.7

    Hi,

    I'm getting this error when trying to access a Document Type:

    Mapping types: ContentType -> IEnumerable1 Umbraco.Core.Models.ContentType -> System.Collections.Generic.IEnumerable1[[Umbraco.Web.Models.ContentEditing.PropertyGroupDisplay`1[[Umbraco.Web.Models.ContentEditing.PropertyTypeDisplay, umbraco, Version=1.0.6554.23596, Culture=neutral, PublicKeyToken=null]], umbraco, Version=1.0.6554.23596, Culture=neutral, PublicKeyToken=null]]

    Destination path: DocumentTypeDisplay.Groups.Groups

    Source value: Umbraco.Core.Models.ContentType

    Exception Details AutoMapper.AutoMapperMappingException:

    Mapping types: ContentType -> IEnumerable1 Umbraco.Core.Models.ContentType -> System.Collections.Generic.IEnumerable1[[Umbraco.Web.Models.ContentEditing.PropertyGroupDisplay`1[[Umbraco.Web.Models.ContentEditing.PropertyTypeDisplay, umbraco, Version=1.0.6554.23596, Culture=neutral, PublicKeyToken=null]], umbraco, Version=1.0.6554.23596, Culture=neutral, PublicKeyToken=null]]

    Destination path: DocumentTypeDisplay.Groups.Groups

    Source value: Umbraco.Core.Models.ContentType

    enter image description here

    It has nested content and strangely it works fine on another developers machine, but he made it.

    Any ideas how I can fix this.

    Thanks

  • Scott 8 posts 109 karma points
    Jan 19, 2018 @ 14:48
    Scott
    101

    This has been fixed, I had a missing package.

  • Rob Carlaw 21 posts 134 karma points
    Feb 27, 2018 @ 17:00
    Rob Carlaw
    0

    I've just started getting this error - can you remember the missing package?

  • James Russell 6 posts 78 karma points
    Oct 03, 2018 @ 11:25
    James Russell
    2

    Hi,

    I found the issue to be that the Document Type that was giving the error was using a data type that required a plugin (which had been removed from the solution). So deleting the data type fixed the Document type.

    At the bottom of the error was an inner error which was helpful in solving the issue.

    enter image description here

Please Sign in or register to post replies

Write your reply to:

Draft