Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

Automapper Configuration invalid #28

Closed
danjohnso opened this issue Dec 24, 2014 · 1 comment
Closed

Automapper Configuration invalid #28

danjohnso opened this issue Dec 24, 2014 · 1 comment
Assignees
Labels

Comments

@danjohnso
Copy link

The use of Mapper.AssertConfigurationIsValid() causes a YSOD because of unmapped fields. I copied the YSOD below for what fields are unmapped. I am on the latest pre-release for all of the Thinktecture projects and I deleted all my db tables to make sure they got recreated from scratch.

Unmapped members were found. Review the types and members below.

Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type

Client -> Client (Destination member list)
Thinktecture.IdentityServer.Core.EntityFramework.Entities.Client -> Thinktecture.IdentityServer.Core.Models.Client (Destination member list)

Unmapped properties:
Claims
AlwaysSendClientClaims

PrefixClientClaims

Client -> Client (Source member list)
Thinktecture.IdentityServer.Core.Models.Client -> Thinktecture.IdentityServer.Core.EntityFramework.Entities.Client (Source member list)

Unmapped properties:
Claims
AlwaysSendClientClaims
PrefixClientClaims

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: AutoMapper.AutoMapperConfigurationException:
Unmapped members were found. Review the types and members below.

Add a custom mapping expression, ignore, add a custom resolver, or modify the source/destination type

Client -> Client (Destination member list)
Thinktecture.IdentityServer.Core.EntityFramework.Entities.Client -> Thinktecture.IdentityServer.Core.Models.Client (Destination member list)

Unmapped properties:
Claims
AlwaysSendClientClaims

PrefixClientClaims

Client -> Client (Source member list)
Thinktecture.IdentityServer.Core.Models.Client -> Thinktecture.IdentityServer.Core.EntityFramework.Entities.Client (Source member list)

Unmapped properties:
Claims
AlwaysSendClientClaims
PrefixClientClaims

@brockallen brockallen added the bug label Dec 28, 2014
@brockallen brockallen self-assigned this Dec 28, 2014
@brockallen
Copy link
Member

Fixed on dev

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants