-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
DocsThis issue tracks updating documentationThis issue tracks updating documentationarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsfeature-identity-service
Milestone
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
Metadata
Metadata
Assignees
Labels
DocsThis issue tracks updating documentationThis issue tracks updating documentationarea-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Componentsfeature-identity-service