AddIdentity() fails “InvalidOperationException: Scheme already exists: Identity.Application”
- 阅读更多 关于 AddIdentity() fails “InvalidOperationException: Scheme already exists: Identity.Application”
问题 Im trying to add facebook login to my .NET Core 2.1 site Im following this , guide and more specific, this (for facebook login) After have adding the lines below to startup.cs, inside ConfigureServices-method public void ConfigureServices(IServiceCollection services) { ... services.AddIdentity<ApplicationUser, IdentityRole>() .AddEntityFrameworkStores<ApplicationDbContext>() .AddDefaultTokenProviders(); ... } I get the error message, when Im running the application. Without these lines it