azure - 无法连接到本地 Service Fabric 群集

标签 azure azure-service-fabric

最近我卸载了 Service Fabric SDK 1.4 并安装了 Service Fabric SDK 2.0,发布消息称我无法创建/连接到本地 Service Fabric 集群。我收到下面提到的异常。我尝试重新启动虚拟机以确保反射(reflect)环境变量。尝试卸载并重新安装 sdk 几次,但没有看到问题得到解决。如果有人遇到此问题,请告诉我,如果解决了,我需要采取哪些措施。

Waiting for Naming Service to be ready. This may take a few minutes... Connect-ServiceFabricCluster : Unable to cast COM object of type 'System.__ComObject' to interface type 'IFabricApplicationManagementClient6'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{B01E63EE-1EA4-4181-95C7-983B32E16848}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). At C:\Program Files\Microsoft SDKs\Service Fabric\Tools\Scripts\ClusterSetupUtilities.psm1:521 char:12 + [void](Connect-ServiceFabricCluster @connParams) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Connect-ServiceFabricCluster], InvalidCastException + FullyQualifiedErrorId : CreateClusterConnectionErrorId,Microsoft.ServiceFabric.Powershell.ConnectCluster

我尝试按照此链接中提到的步骤来设置我的本地集群 Link

以下是安装的组件

enter image description here

最佳答案

我在使用 Service Fabric Actors 时遇到问题,当我的 Actor 客户端尝试连接到 Actor 服务时,我遇到了相同的错误消息。经过数小时的尝试不同的事情后,我意识到我的 Service Fabric 实现和 Actor 客户端正在使用不同版本的 Service Fabric NuGet 包

在我的 Actor 客户端中使用相同版本(我基本上将其降级)后,客户端开始按预期工作。

关于azure - 无法连接到本地 Service Fabric 群集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36758539/

相关文章:

c# - Service Fabric 中的应用程序洞察?

azure-service-fabric - Connect-ServiceFabricCluster : Argument 'Connect-ServiceFabricCluster' is not recognized as a cmdlet: Unable to load DLL 'FabricCommon.dll'

azure - 使用 VM 规模集缩小 VM 时 Azure Service Fabric Explorer 中出现错误

c# - 无需 TFS 或 VSTS 自动部署 Service Fabric 项目

azure - 如何将范围和 ApplicationURI 添加到 Azure AD 应用程序注册?

sql-server - 如何使用开发人员计算机连接到 Azure VM SQL Server Analysis Service 实例

mysql - 如何在 ARM 模板中选择不同的 ClearDb MySQL 数据库类型?

python - 使用 Azure 容器注册表 python API 列出图像标签

api - 访问经过身份验证的Azure API APP

c# - 如何在 Azure Service Fabric ASP.NET Core 有状态服务中获取 PartitionInfo?