Starts in:
1 DAY
16 HRS
28 MIN
27 SEC
Starts in:
1 D
16 H
28 M
27 S
Open Closed

DependencyResolutionException: None of the constructors found on type can be invoked with the available services and parameters #7509


User avatar
0
Repunjay_TASC created
  • ABP Framework version: 7.4.2
  • UI Type: Angular
  • Database System: EF Core (PostgreSQL..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Saml2AppService.cs, which is located in IdentityApplicationModule. I want to save user data in the abpUser table, therefore I called the CreateAsync method, which is present within IdentityUserAppService.cs in IdentityApplicationModule.

I'm facing error while calling the below api. DependencyResolutionException: None of the constructors found on type can be invoked with the available services and parameters

for you reference pls find the attached screen shot.

Error :


6 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    First. Do not inject an application service into another application service. Second, The application service shouldn't return the IActionResult

    I think you can't use IUrlHelper in the application service.

    You can try removing the parameter from the constructor to test which one causes the error.

    Thanks.

  • User Avatar
    0
    Repunjay_TASC created

    ok let me change code

  • User Avatar
    0
    Repunjay_TASC created

    Hi if we do not inject an application service into another application service. But i want to call another application service specific method how to call ?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    You can add a domain service and use it in two application services.

    https://docs.abp.io/en/abp/latest/Domain-Services

  • User Avatar
    0
    Repunjay_TASC created

    Thanks for update :)

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    : )

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06