Closed
Description
Hi.
In trying to add roles to my Blazor app.
builder.Services.AddIdentityCore<ApplicationUser>(options => options.SignIn.RequireConfirmedAccount = true)
.AddEntityFrameworkStores<ApplicationDbContext>()
.AddSignInManager()
.AddRoles<IdentityRole>()
.AddDefaultTokenProviders();`
I added .AddRoles<IdentityRole>()
to the "Out of the box" template "dotnet new blazor -au Individual"
Exception thrown: 'System.AggregateException' in Microsoft.Extensions.DependencyInjection.dll
Am I missing something...
Regards,
Dean