Ends in:
1 DAY
3 HRS
29 MIN
3 SEC
Ends in:
1 D
3 H
29 M
3 S
Open Closed

Could not find ApiDescriptionModel for action: Get in controller: Sample, May be the generate-proxy.json is not up to date. #4287


User avatar
0
mc86 created
  • ABP Framework version: v7.0.0
  • UI type: Blazor
  • DB provider: EF Core /
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

HI

got many errores like this when blazor project started then get error like this atfer call a remote service System.InvalidOperationException: Cannot provide a value for property 'MinionsAppService' on type 'CP.TechGenieService.Blazor.Pages.TechGenieService.Minions'. There is no registered service of type 'CP.TechGenieService.Minions.IMinionsAppService'. have been gerated ClientProxies in the **.HttpApi.Client and added the Depends in blazor module


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

    hi

    Have you tried regenerating the latest proxy?

    If it still doesn't work, please use the template project to reproduce the problem and share it with liming.ma@volosoft.com

  • User Avatar
    0
    mc86 created

    HI Ma both dynamic and static proxy don't work I send the project to your email.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Please remove node_modules and run abp clean command to clean your project. current zip is too big.

  • User Avatar
    0
    mc86 created

    already send it.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    current zip is too big.

  • User Avatar
    0
    mc86 created

    I will send another one

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok

  • User Avatar
    0
    mc86 created

    hi deleted all node_modules and dlls zip currently size is under 50mb. did you recive it?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Not yet.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    I got the mail now.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    What are the steps to reproduce?

  • User Avatar
    0
    mc86 created

    I created this project with abp suite with 7.0 ms template and add my microserivces

    https://support.abp.io/QA/Questions/4233/Side-menus-lost it has this problem too please check this for me tks

  • User Avatar
    0
    mc86 created

    just run the project with tye and open the erp menu then error come out

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Unable to find package DevExpress.Blazor.Dashboard. No packages exist with this id

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    What's your DevExpress nuget source? liming.ma@volosoft.com

  • User Avatar
    0
    mc86 created

    send it to you

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    ok

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Use AddStaticHttpClientProxies instead of AddHttpClientProxies

    https://docs.abp.io/en/abp/latest/API/Dynamic-CSharp-API-Clients https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/Volo/Abp/Identity/AbpIdentityHttpApiClientModule.cs#L15

  • User Avatar
    0
    mc86 created

    what's wrong with dynamic proxy?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Your erp is using the Static proxy now.

    https://docs.abp.io/en/abp/latest/API/Dynamic-CSharp-API-Clients https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.HttpApi.Client/Volo/Abp/Identity/AbpIdentityHttpApiClientModule.cs#L15

  • User Avatar
    0
    mc86 created

    abp generate-proxy -t csharp -u https://localhost:48500 -m erpservice use this command just generate sample controller's client code.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Please check the document.

    https://docs.abp.io/en/abp/latest/API/Dynamic-CSharp-API-Clients https://docs.abp.io/en/abp/latest/API/Static-CSharp-API-Clients

  • User Avatar
    0
    mc86 created

    can you test dynamic proxy use erp project? Static proxy is working but i user commented code still got errors

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    If you want to use dynamic proxy , Please remove the remove generated code. and see https://docs.abp.io/en/commercial/latest/startup-templates/microservice/add-microservice#updating-gateways

Made with ❤️ on ABP v9.1.0-preview. Updated on November 29, 2024, 05:50