After reading more than 20 pages about this subject im constraint to ask help
Im using C# MVC .ASP NET CORE I want to host the user of the application on the sql database => not on the local database
I added the AspNetUsers tables in my database (like this) image And changed in Models/IdentityModels.cs
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
{
public ApplicationDbContext()
: base("dbApp", throwIfV1Schema: false)
{
}
public static ApplicationDbContext Create()
{
return new ApplicationDbContext();
}
}
with the good string connection name from Web.config
Somemone can say me why i get this error :
var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, shouldLockout: false);
Thanks all