GetUserByUniqueIdAsync() does not work anymore .NET 6.0, modules v1.5.0, #12947
Unanswered
testazuretest1
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Maybe I am doing something wrong, but after update our app to .NET 6.0 and OrchardCore to version 1.5.0 (we updated from .NET Core 3.1 and OrchardCore 1.0.0-rc2-13450), GetUserByUniqueIdAsync() method from UserService(OrchardCore.Users.Services) does not work anymore and it's because of inner exception:
System.NotSupportedException: 'Store does not implement IQueryableUserStore < TUser > '.
at Microsoft.AspNetCore.Identity.UserManager`1.get_Users()
We were using this method in a few places, but I also realized that it's probably being used in Edit user functionality in Admin panel, cause when I tried to edit user it also didn't work and I think it's becuase it's using the same method.
Steps to reproduce the behavior:
Go to admin panel
Click on Edit user
See error - The page could not be found
Expected behavior
GetUserByUniqueIdAsync() from UserService still works properly and returns user instead of null.
Beta Was this translation helpful? Give feedback.
All reactions