How to fix System.InvalidOperationException: Scheme already exists: Identity.Application
By FoxLearn 2/18/2024 9:38:04 AM 99
This post shows you how to solve 'System.InvalidOperationException: Scheme already exists: Identity.Application' after identity scaffolding in ASP.NET Core.
For example
Creating an ApplicationUser class that extends the IdentityUser class, then add a FullName property
public class ApplicationUser : IdentityUser { public string FullName { get; set; } }
Opening your Startup class, then modify your class as shown below.
services.AddIdentity<ApplicationUser, IdentityRole>() .AddEntityFrameworkStores<ApplicationDbContext>() .AddDefaultTokenProviders();
- ASP.NET Core: How to Create RDLC Report in ASP.NET Core
- How to fix Assets file 'project.assets.json' not found
- How to fix 'IMvcBuilder' does not contain a definition for 'AddNewtonsoftJson'
- How to fix 'DbContextOptionsBuilder' does not contain a definition for 'UseSqlServer'
- How to set cookie ValidationInterval in ASP.NET Core
- How to fix LoginPath not working in ASP.NET Core
- How to fix Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager'
- How to Configure ASP.NET Core Identity password policy
Categories
Popular Posts
Visual Studio: Auto increment version
04/01/2024
What is ARM architecture?
04/01/2024