0 پاسخ

خطای کار با Identity asp.net mvc

An unhandled exception occurred while processing the request.  
InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1\[BE.UserApp\]' while attempting to activate 'StoreFile.Controllers.Admin.AccountController'.  
Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ThrowHelperUnableToResolveService(Type type, Type requiredBy)

Stack Query Cookies Headers Routing  
InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1\[BE.UserApp\]' while attempting to activate 'StoreFile.Controllers.Admin.AccountController'.  
Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ThrowHelperUnableToResolveService(Type type, Type requiredBy)  
lambdamethod42(Closure , IServiceProvider , object\[\] )  
Microsoft.AspNetCore.Mvc.Controllers.ControllerFactoryProvider+<>c**DisplayClass60.<CreateControllerFactory>g**CreateController|0(ControllerContext controllerContext)  
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)  
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()  
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g**Awaited|250(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)  
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)  
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)  
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()  
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g**Logged|171(ResourceInvoker invoker)  
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>gLogged|171(ResourceInvoker invoker)  
Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)  
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)  
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)

Show raw exception details

ثبت پرسش جدید

به همدیگه کمک کنیم

به اسماعیل وظیفه دان کمک کنید تا مشکل خودش را حل کند؛ این‌طور می‌توانیم با هم پیشرفت کنیم.

برای ارسال پاسخ لازم است وارد شده یا ثبت‌نام کنید

ورود یا ثبت‌نام