最近,我卸载了Service Fabric SDK 1.4并安装了Service Fabric SDK 2.0,但我无法创建/连接到本地服务结构群集。我得到了下面提到的例外。我尝试重新启动虚拟机以确保环境变量得到反映。试图卸载并重新安装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
下面是安装的组件,
你能打开添加/删除程序,搜索“结构”,并共享Service Fabric和Service Fabric SDK的版本。这听起来像一个接口不匹配。 –
@Sean McKenna,当然,我编辑了我的问题,展示了织物的安装。请让我知道是否有不匹配。 –
@Sean McKenna,还有什么我需要怀疑的,就像我已经安装了VS2015&2013一样。关于哪个组件试图从Com对象获得哪些组件或者您可以建议的任何线索 –