Skip to content

Type UserManager`1 must derive from UserManager<ApplicationUser>. #1

@stefanodesimone

Description

@stefanodesimone

Hi,
I've created a new NET 6 MVC project, downloaded the package, modified program.cs with:
builder.Services
.AddIdentity<ApplicationUser, ApplicationRole>()
.AddMongoDbStores();

Created ApplicationUser and ApplicationRole classes
When I start the debug, receive this error on builder.Services.AddIdentity.....

System.InvalidOperationException: 'Type UserManager`1 must derive from UserManager.'

Can anyone help me?

Regards
Stefano

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions