LocalAgentCLI.exe Install C:\DynamicsAgent\localagent-config.json
LocalAgentCLI.exe Error: 0 : Exception System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'IFabricServiceManagementClient7'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{332C88B9-BA98-429F-BB50-A562C17476EB}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
at System.Fabric.FabricClient.CreateNativeClient(IEnumerable`1 connectionStringsLocal)
at System.Fabric.Interop.Utility.<>c__DisplayClass28_0.<WrapNativeSyncInvoke>b__0()
at System.Fabric.Interop.Utility.WrapNativeSyncInvoke[TResult](Func`1 func, String functionTag, String functionArgs)
at System.Fabric.Interop.Utility.RunInMTA(Action action)
at System.Fabric.FabricClient.InitializeFabricClient(SecurityCredentials credentialArg, FabricClientSettings newSettings, String[] hostEndpointsArg)
at SetupInfrastructure.LBDFabricClient.InitializeFabricClient(String[] hostEndpoints, X509Credentials credentials)
at SetupInfrastructure.ServiceFabricHelper.GetServiceFabricClient(ServiceFabricSettings sfSettings)
at SetupInfrastructure.ServiceFabricApplicationSetupManager`1..ctor(T settings, String setupFolder)
at LocalAgentCLI.Program.<Main>d__1.MoveNext()