Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identity exception #61

Closed
jphellemons opened this issue May 9, 2018 · 3 comments
Closed

Identity exception #61

jphellemons opened this issue May 9, 2018 · 3 comments
Milestone

Comments

@jphellemons
Copy link

identity

I am running 2.1.300-preview2-008530 which might cause it. So I have some small differences between the version used in the book and mine. I have published what I have so far in this repo: https://github.com/jphellemons/LittleBook

for instance in program.cs BuildWebHost vs CreateWebHostBuilder
https://github.com/jphellemons/LittleBook/blob/fc5cbead616bed11dab832f72afa8638fe702869/LittleBook/Program.cs#L18

But I have missed something in the Startup.cs I think:

InvalidOperationException: No service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' has been registered.

But I have the applicationuser and identityuser service here:
https://github.com/jphellemons/LittleBook/blob/fc5cbead616bed11dab832f72afa8638fe702869/LittleBook/Startup.cs#L42

I have checked the book and can't find my error. Did I really miss something? If it's not because of a small missing part of the book. Then I am sorry and I should have posted it on StackOverflow instead of filing an issue. I just want to give some feedback on the book to try and add value. So that the book even gets better and might help more people :) and to learn stuff myself.

@nbarbettini
Copy link
Owner

FYI, the book is not compatible with 2.1 yet. I haven't tried it myself, so I'm not sure yet if this is due to a 2.1 difference or not.

@jphellemons
Copy link
Author

No problem, I was just checking if my error was due to the small differences between the versions of the book. I downloaded the old book version just days after you released the new version (without the FB auth and secrets). I will try to figure this one out myself and will update this when I have the solution so that it might help other people who have the same issue.

@nbarbettini nbarbettini added this to the 1.2 milestone Jun 11, 2018
@jphellemons
Copy link
Author

Let's close this issue, as it is probably similar to #65 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants