ASP.Net Core MVC Error: Unable to resolve service for type Microsoft.AspNetCore.Identity.UserManager while attempting to activate

Last Reply 11 days ago By dharmendr

Posted 13 days ago

Hi

how i get current user details using asp.net core mvc 3.1

InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Estatemanagement.Models.ApplicationUser]' while attempting to activate 'Estatemanagement.Controllers.EstateProfileController'.

Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetService(IServiceProvider sp, Type type, Type requiredBy, bool isDefaultParameterRequired)