【问题标题】:FabricInvalidAddressException: NamedEndpoint 'V2Listener' when trying to connect from .NET Core applicationFabricInvalidAddressException:尝试从 .NET Core 应用程序连接时,NamedEndpoint 'V2Listener'
【发布时间】: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,它并没有帮助我找到解决方案。

【问题讨论】:

    标签: azure-service-fabric


    【解决方案1】:

    您只能在 .Net Core 中使用 SF Remoting V2。 仅使用完整框架支持远程处理 V1。 (我同意文档应该指定这一点。)

    看到这个link

    【讨论】:

    • 谢谢,这在文档中根本不清楚
    猜你喜欢
    • 1970-01-01
    • 2017-02-16
    • 2021-06-16
    • 1970-01-01
    • 2021-08-03
    • 1970-01-01
    • 2020-02-24
    • 2020-08-29
    • 2021-03-17
    相关资源
    最近更新 更多