SignInManager.SignInAsync does not work ASP.net MVC Identity
问题 I am trying to store User Roles in cookies upon login using Identity "SignInManager.SignInAsync". I'm using the example from here(Section 4): https://docs.microsoft.com/en-us/aspnet/identity/overview/getting-started/introduction-to-aspnet-identity. The error im getting is: *Error CS0305 Using the generic type 'SignInManager<TUser, TKey>' requires 2 type arguments* I tried declaring the Signinmanager with: private readonly SignInManager<ApplicationUser, string> _signInManager; Here is the code