Open Closed

Get user data and users for a role in a Domain Module #8869


User avatar
0
paul.harriman created
  • 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)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    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 the Volo.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.

  • User Avatar
    0
    paul.harriman created

    berkansasmaz,

    i did find an email for you looking through the support tickets: berkan.sasmaz@volosoft.com. i will send the email there.

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    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?

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    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.

  • User Avatar
    0
    paul.harriman created

    i am closing the ticket as we have figured out an alternate way to get the data. I do thank you for the effort!!!

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08