- 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)
-
0
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. -
0
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.
-
0
Added references to HttpApi layer of the microservice in Web. Now it is generating Dynamic Proxies.
-
0
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.