Skip to content

You cannot include a type map into itself error #3827

@NCC1701M

Description

@NCC1701M

Source/destination types

There are no information about which types are involed

Mapping configuration

Always using CreateMap<Model, ViewModel>() and ReverseMap

Version: 11.0.0

Expected behavior

No error!

Actual behavior

After upgrading from AutoMapper 10 to 11 it raises the error:
You cannot include a type map into itself error

What does this error mean? Where and why does it happen? All mappings worked perfectly with AutoMapper version 10 and AutoMapper.Extensions.Microsoft.DependencyInjection version 8.1.1 and now this error.

There needs to be a documentation about this error or at least in the exception should be the name of the effected class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions