Starts in:
0 DAY
17 HRS
40 MIN
9 SEC
Starts in:
0 D
17 H
40 M
9 S
Open Closed

Problem with Generating Dynamic Proxies in v5.1.3 #2533


User avatar
0
viswajwalith created
  • ABP Framework version: v5.1.3
  • UI type: MVC
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes / Microservice
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

We upgraded our application from 4.4.0 to 5.1.3

Product Service is generating dynamic proxies in 5.1.3, our Employee Service is not generating dynamic proxies in 5.1.3 In 4.4.0 our Employee Service was able to generate dynamic proxies successfully.


4 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    If you want to keep using dynamic proxies, you need to make web/publicweb gateways reference to HttpApi layer of the microservice and depend on them.

    Or you can use static proxy with AddStaticHttpClientProxies and generate proxies using cli command: abp generate-proxy --type csharp --module RemoteServiceName --url https://microservicehost:port under HttpApi.Client layer while it's running.

  • User Avatar
    0
    viswajwalith created

    Already there are microservice HttpApi reference in web gateway like product service. if we give web gateway reference in HttpApi layer of the microservice, there will be circular dependency. Dynamic proxies generating for product service with existing references but not for our other microservices.

  • User Avatar
    0
    viswajwalith created

    Added references to HttpApi layer of the microservice in Web. Now it is generating Dynamic Proxies.

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    We'll create a guide about switching between dynamic and static proxies.

    Closing the issue. Feel free to re-open if you come across the same issue.

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