Closed replaysMike closed 6 years ago
This appears to be to do with LightInject upon further investigation. When I comment out the LightInject provider and return a standard MS provider I can access the ApplicationSignInManager instance.
I dug into the LightInject provider and it does seem to be aware of the type, it looks registered to me. I'm taking this over to the LightInject guys to see why this isn't working right.
I've run into an issue where controllers can't be instantiated because my custom UserManager and SignInManager aren't injected (latest 2.1.2):
InvalidOperationException: Unable to resolve service for type 'TestAuthentication.Data.Identity.ApplicationUserManager' while attempting to activate 'TestAuthentication.Controllers.DefaultController'.
I had this working in another project and I don't know what's causing it. I created a brand new test project which duplicates the issue at https://github.com/replaysMike/TestAuthentication
and other files: