g0t4 / aspnet-identity-mongo

A mongodb provider for the new ASP.NET Identity framework.
MIT License
197 stars 130 forks source link

Reference to type 'IdentityBuilder' claims it is defined in 'Microsoft.AspNetCore.Identity', but it could not be found #43

Open cowtrix opened 4 years ago

cowtrix commented 4 years ago

Hi all,

Attempting to follow the steps in the quickstart. However, the line:

services.AddIdentityWithMongoStores("mongodb://localhost/myDB");

...throws a syntax error:

Reference to type 'IdentityBuilder' claims it is defined in 'Microsoft.AspNetCore.Identity', but it could not be found

I am referencing Microsoft.AspNetCore.Identity 2.2.0, however when I look within this .dll I cannot find any definition for this IdentityBuilder class. Even more confusingly, when I look at the source for 'Microsoft.AspNetCore.Identity', I can see references to that class within it. What the heck?

GodCC6 commented 4 years ago

Hi, Have you solved this problem? I am suffering the same error...

lud commented 4 years ago

Same here.

emre-bener commented 1 year ago

simply updating all packages solved it for me. here are the steps: