ASP.NET Core Identity does not inject UserManager

后端 未结 3 1603
挽巷
挽巷 2021-01-04 05:46

I\'ve got an older asp.net core identity database, and I want to map a new project (a web api) to it.

Just for the test, I copied the Models folder, and the Applicat

3条回答
  •  走了就别回头了
    2021-01-04 06:05

    DI container is unable to resolve a dependency. Add it to the services collection

    services.AddTransient>();
    services.AddTransient();
    

    You should also familiarize yourself with the official documentation

提交回复
热议问题