Skip to content

ApplicationUser must be convertible to microsoft.aspnet.identity.framework.identityuser inorder to use it as parameter TUser #1

@hnabih

Description

@hnabih

Thank you so much for the template. I am not very experienced program however manage to use the template. I am trying to import users information from an old project using SqlMembership, I need to use SQLPasswordHasher which I got from this example: http://www.asp.net/identity/overview/migrations/migrating-an-existing-website-from-sql-membership-to-aspnet-identity.

I am trying to add UserManger:
public MyUserManager ()
: base(new UserStore(new ApplicationDbContext()))
{
this.PasswordHasher = new SQLPasswordHasher();
}
I get the above error.
When I change the public class ApplicationUser : IdentityUser I don't get this error

I would appreciate your suggestions.

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