-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AutoMapperMappingException: Missing type map configuration or unsupported mapping. #689
Comments
Thanks for reporting this issue, did you get this exception with latest version from master? |
Yes, its is producible on master branch. |
Ok, let me check it. Can you send a PR with your fix? Thanks |
Not sure how to create pull request from source-tree. Adding following mapping to IdentityServer4.Admin\src\Skoruba.IdentityServer4.Admin.BusinessLogic.Identity\Mappers\IdentityMapperProfile.cs resolves this issue, |
Oki, I will add it manualy. Thank you @maqeelqureshi 👍 |
Hello, Could you point me in the direction to solve this issue? I see that UserIdentityRoleClaim class (Skoruba.IdentityServer4.Admin.EntityFramework.Shared.Entities.Identity) is empty. Regards, erick |
Hi, I added these lines to IdentityMapperProfile.cs to resolve automapper exceptions with UserLoginInfo -> UserProviderDto (when you list user providers) and RoleClaimDto exceptions:
I think mappings needs a review. |
Hi guys, thanks for your fixes. I will definitelly review whole mapping for API. I am busy right now, so that is the reason why this issue is stil open. |
Thank you! Fixed in 1.0.0-rc3 #703 |
Following Mapping types are missing,
UserIdentityRoleClaim -> RoleClaimDto`1
PagedList`1 -> IdentityRoleClaimsDto
PagedList`1 -> IdentityRoleClaimsDto
To Reproduce
Clone code,
Run migration and seed
Add Role claims
The text was updated successfully, but these errors were encountered: