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

Not supporting for ASPNET Core >=2.1.0 #56

Open
RajivCodeLab opened this issue Aug 5, 2018 · 11 comments
Open

Not supporting for ASPNET Core >=2.1.0 #56

RajivCodeLab opened this issue Aug 5, 2018 · 11 comments

Comments

@RajivCodeLab
Copy link

Hi,
Throwing below error at Startup.cs
~/Identity.Api/Startup.cs(17,17): Error CS7069: Reference to type 'IUserTwoFactorStore<>' claims it is defined in 'Microsoft.AspNetCore.Identity', but it could not be found (CS7069)

@dealproc
Copy link
Collaborator

dealproc commented Aug 8, 2018

Hmm... I am working on trying to get everything moved around, and will look into this within my fork of the repository. Once everything is stabilized, I'll be pushing everything into this repo and killing off my working repo. The cheese may have moved in 2.1.0+ and we will need to account for this.

@dealproc
Copy link
Collaborator

dealproc commented Jan 9, 2019

Given the delay with this, and that asp.net core 2.2 is now out, i'm going to base decisions on asp.net core 2.2 instead of 2.1

@dealproc
Copy link
Collaborator

dealproc commented Jan 9, 2019

I converted to asp.net core 2.2 and am not experiencing this. This may be due to the fact that with recent PRs, we have the IUserTwoFactorStore<> implemented now. Will conclude changes so everything is setup for asp.net core 2.2 and push up for review @devrajeev. HTH

dealproc added a commit that referenced this issue Jan 9, 2019
@dealproc
Copy link
Collaborator

dealproc commented Jan 9, 2019

Code is pushed. Please review the check-in and see if that works. We need to prepare a new nupkg for testing within your solution.

@dealproc dealproc closed this as completed Jan 9, 2019
@AdiletB
Copy link

AdiletB commented Mar 1, 2019

Code is pushed. Please review the check-in and see if that works. We need to prepare a new nupkg for testing within your solution.

Hi! Its not working:(

@dealproc
Copy link
Collaborator

dealproc commented Mar 1, 2019

@AdiletB can you please be more specific? I believe I encoded/tested this already, and if there is something specific, I'd like to patch it.

Please keep in mind, we need to push a new nuget package to use the updates.

@dealproc dealproc reopened this Mar 1, 2019
@sashafencyk
Copy link

sashafencyk commented Mar 10, 2019

@dealproc
Hi Guys, I am going to start a new ASP.NET Core 2.2 project. And I am considering to use your library or AspNetCore.Identity.Mongo. So I would like to know when are you going to publish new nuget package that supports Identity 2

@dealproc
Copy link
Collaborator

@sashafencyk -

As I recall, this should be supporting Microsoft.AspNetCore.Identity v2.2.0... Can you send me a link on Identity 2.2 if this is a different project? If it's something that is that much more valuable, a PR against this project may be a better option rather than establishing a new project/nuget package.

I dropped a message to @tugberkugurlu to find out how to push the latest updates into NuGet, but haven't heard back. He and I had one 30 minute discussion on the project overall, but we didn't get into the last parts of publishing it to nuget, which is new to me at this point. I would like to try the library myself (and others do the same) before it can be called a final RTW version, then begin the work on other items.

@tugberkugurlu
Copy link
Owner

I will have a look at giving you a push access @dealproc, sorry for the delay 😞

@burimameti
Copy link

@tugberkugurlu , does its supports .net core 2.2 and 3.0

@lud
Copy link

lud commented Oct 30, 2020

Hi, I have the same kind of error (using netcore 2.2 although no longer supported by Microsoft because I have no choice on that matter, infortunately).

Using this line of code :

return MongoUserStore<MongoIdentityUser>.CreateAsync(db).GetAwaiter().GetResult();

I get this error:

class AspNetCore.Identity.MongoDB.MongoIdentityUser
Reference to type 'IdentityResult' claims it is defined in 'Microsoft.AspNetCore.Identity', but it could not be found 

But there is more : for some reason it seems that the non-static CreateAsync method (which is for users) is to be called :

public Task<IdentityResult> CreateAsync(TUser user, CancellationToken cancellationToken);

The static CreateAsync that accepts a IMongoDatabase (my db variable) does not seem to exist.

I am using this: <PackageReference Include="AspNetCore.Identity.MongoDB" Version="1.0.0-rc3" />

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

No branches or pull requests

7 participants