D
D
DD-var2020-09-22 01:08:44
ASP.NET
DD-var, 2020-09-22 01:08:44

How to fix identity error?

added service

services.AddIdentity<IdentityUser, IdentityRole>(options => options.SignIn.RequireConfirmedAccount = true) 
        .AddEntityFrameworkStores<ApplicationDbContext>();

instead of:
services.AddDefaultIdentity<IdentityUser>(options => options.SignIn.RequireConfirmedAccount = true)
        .AddEntityFrameworkStores<ApplicationDbContext>();

so that I could use UserManager. but errors rained down, how to fix it?
5f69244758f99600398081.jpeg
5f692456deb5f779602165.jpeg
5f69245f1af2b772211843.jpeg
5f6924686bab0260391901.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FreeBa, 2020-09-22
@FreeBa

The error is well described. Embedded IoC cannot resolve IEmailSender. It's ok, it doesn't have a default implementation. Stick a plug in there and you'll be happy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question