【发布时间】:2018-06-08 16:58:56
【问题描述】:
我正在尝试使用 ServiceProxy 类连接到 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 远程处理有关,但我无法弄清楚 .Net Core 项目中默认使用 V2 而不是 V1 的确切原因。
有没有办法强制它使用 V1 - 我目前无法将目标服务升级到 V2。
所有涉及的应用程序都使用 Service Fabric 版本 6.1.480
我能找到的唯一相关文档是Service Fabric Reliable Services Communication Remoting,它并没有帮助我找到解决方案。
【问题讨论】: