abp/microservice Cannot resolve parameter 'Volo.Abp.Identity.Identity "UserManager'"
I tried to use IdentityUserManager in the Application layer, but the error said: "Cannot resolve parameter 'Volo.Abp.Identity.Identity "UserManager'""
How to fix it? Am I missing the configuration in the ConfigureServices?
Thanks
Hi @thihoa0719
Can you please share some information about your project that you face the issue
- Your ABP Framework version.
- Your User Interface type (Angular/MVC/React... etc.) if the issue is related to a specific UI
- Your database provider(EF Core/MongoDB)
- Exception message and stack trace if available (check the logs).
- Steps needed to reproduce the problem.
Hi @thihoa0719
Can you please share some information about your project that you face the issue
- Your ABP Framework version.
- Your User Interface type (Angular/MVC/React... etc.) if the issue is related to a specific UI
- Your database provider(EF Core/MongoDB)
- Exception message and stack trace if available (check the logs).
- Steps needed to reproduce the problem. I'm using the ABP 5.1.4. Use Application to build API. The issue is the contructor cannot resolve. I have no where to configure. App service like this:
public class UserAppService : ApplicationService, IUserAppService {
IdentityUserManager _userManager;
public TestAppService(IdentityUserManager userManager)
{
_userManager = userManager;
}
}
hi @thihoa0719
Check your depends modules.
https://github.com/abpframework/abp/blob/e3e1779de6df5d26f01cdc8e99ac9cbcb3d24d3c/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpIdentityDomainModule.cs#L24
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.