本文介绍了FabricInvalidAddressException:尝试从.NET Core应用程序连接时出现NamedEndpoint'V2Listener'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm am trying to connect to a Service Fabric application using the ServiceProxy class like so:

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

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

When I do this from a .Net Framework application everything works fine.

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

However, when I try this from a .Net Core application I get the following error:

我假设这与V2远程处理有关,但是我无法弄清楚.Net Core项目中的确切含义是默认使用V2而不是V1.

I'm assuming this has something to do with V2 remoting, but I can't figure out what exactly it is in the .Net Core project that is defaulting it to use V2 instead of V1.

有没有一种方法可以强制它使用V1-目前我无法将目标服务升级到V2.

Is there a way I can force it to use V1 - I'm not in a position to upgrade the target service to V2 at the moment.

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

All applications involved are using Service Fabric version 6.1.480

我可以找到的唯一相关文档是服务结构可靠的服务通信远程处理,它并没有帮助我找到解决方案.

Only relevant documentation I can find is Service Fabric Reliable Services Communication Remoting and it hasn't helped me find a solution.

推荐答案

您只能在.Net Core中使用SF Remoting V2.仅使用完整框架支持Remoting V1.(我同意文档中应对此进行说明.)

You can only use SF Remoting V2 in .Net Core.Remoting V1 is supported using Full Framework only. (I agree that the documentation should specify this.)

请参见此链接

这篇关于FabricInvalidAddressException:尝试从.NET Core应用程序连接时出现NamedEndpoint'V2Listener'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 21:51