最近,我卸載了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對象獲得哪些組件或者您可以建議的任何線索 –