-
ABP Framework version: v8.3.4
-
UI Type: Angular
-
Database System: EF Core (SQL Server)
-
Tiered (for MVC) or Auth Server Separated (for Angular): no
-
Exception message and full stack trace:
-
Steps to reproduce the issue:
In a domain module and need to get user data and users for a role (data like phone number, email, name). I have tried to use IdentityUserManager/IdentityRoleMnager and IdentityUserRepository/IIdentityRoleRepository
i added a package ref to the project
<PackageReference Include="Volo.Abp.Identity.Domain" Version="8.3.4" />
I tried adding various DependsOn to the Module. Building works ok, but i get a runtime of cannot resolve, one of the messages is shown below:
-
Cannot resolve parameter 'Volo.Abp.Identity.IIdentityUserRepository userRepository' of constructor 'Void .ctor(OtisEd.Alerts.NotificationEventMessageQueues.NotificationEventMessageQueueManager,
Which should we be using the Managers or the Repository? What is the DependsOn we should be using? I have googled and i have seen answers for using managers and repositories. None of them have worked for me
5 Answer(s)
-
0
Hi,
Can you send me the complete content of
NotificationEventMessageQueueManager
?By the way, the domain project of your solution already has the
Volo.Abp.Identity.Pro.Domain
package reference. So you should not need to add a reference to theVolo.Abp.Identity.Domain
project. Can you create a project from scratch and try to use IdentityUserRepository or IdentityUserManager there? You will see that it will work when you try. There is probably something wrong with your solution, but don't worry, together we can solve the problem. -
0
berkansasmaz,
i did find an email for you looking through the support tickets: berkan.sasmaz@volosoft.com. i will send the email there.
-
0
Hi,
First of all, thank you for submitting the Domain layer of your project. Everything seems normal but there is one place I suspect. Can you send the content of your MyAppDbContex class?
-
0
Thanks, I examined the DBContext you sent, but I couldn't come to a conclusion. Do you have a chance to send your complete project so we can solve it faster? Because I cannot reproduce this problem when I created a project from scratch.
-
0
i am closing the ticket as we have figured out an alternate way to get the data. I do thank you for the effort!!!