FabricInvalidAddressException:NamedEndpoint 'V2Listener' 尝试从 .NET Core 应用程序连接时

FabricInvalidAddressException: NamedEndpoint 'V2Listener' when trying to connect from .NET Core application

我正在尝试使用 ServiceProxy class 连接到 Service Fabric 应用程序,如下所示:

return ServiceProxy.Create<ISomeService>(
    new Uri("fabric:/SomeService.App/ISomeService"), 
    new ServicePartitionKey(0));

当我从 .Net Framework 应用程序执行此操作时,一切正常。

但是,当我从 .Net Core 应用程序尝试此操作时,出现以下错误:

InnerException = {System.Fabric.FabricInvalidAddressException: NamedEndpoint 'V2Listener' not found in the address '{"Endpoints":{"":"..."}}' for partition '...')

我假设这与 V2 远程处理有关,但我无法弄清楚它在默认使用 V2 而不是 V1 的 .Net Core 项目中到底是什么。

有什么方法可以强制它使用 V1 - 我目前无法将目标服务升级到 V2。

所有涉及的应用程序都使用 Service Fabric 版本 6.1.480

我能找到的唯一相关文档是 Service Fabric Reliable Services Communication Remoting,它并没有帮助我找到解决方案。

您只能在 .Net Core 中使用 SF Remoting V2。 仅使用 Full Framework 支持 Remoting V1。 (我同意文档应该具体说明这一点。)

看到这个link