abp icon indicating copy to clipboard operation
abp copied to clipboard

abp/microservice Cannot resolve parameter 'Volo.Abp.Identity.Identity "UserManager'"

Open thihoa0719 opened this issue 3 years ago • 3 comments

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

thihoa0719 avatar Aug 08 '22 02:08 thihoa0719

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.

enisn avatar Aug 08 '22 10:08 enisn

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;
}
}

thihoa0719 avatar Aug 08 '22 13:08 thihoa0719

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

maliming avatar Aug 09 '22 01:08 maliming

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.

stale[bot] avatar Oct 15 '22 18:10 stale[bot]