microsoft / service-fabric-services-and-actors-dotnet

Reliable Services and Reliable Actors are Service Fabric application frameworks for building highly-scalable distributed cloud applications.
Other
269 stars 113 forks source link

Unable to get V2 remoting working #309

Open Gerrilicious opened 2 years ago

Gerrilicious commented 2 years ago

Describe the bug When trying to call stateless service with V2_1 Listener from WebApi (http endpoint) to the service it works, with the exclusive V2 I get the error: "NamedEndpoint V2Listener not found in the address ..."

To Reproduce Minimal reproduceable example: https://github.com/Gerrilicious/FabricApplicationCommunicationTest

Steps I have done:

Expected behavior I expect clarification on how the V2 stack should be used.

Additional context Add any other context about the problem here.

pakunapamsft commented 2 years ago

ServiceFramework checks for the *ServiceRemotingProviderAttribute in the interface assembly and Entry assembly in order. You need to either move FabricTransportServiceRemotingProviderAttribute to Communication project(interfaces) or have it defined in Web project as well inorder to be able to read by ServiceFramework.

3 in remoting doc(https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-services-communication-remoting#use-an-assembly-attribute-to-use-the-v2-stack) suggests adding the attribute in the interfaces library.