web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

I'm trying to clean up and install local agent for moving package in d365 fo on-prem environement getting the following error

(0) ShareShare
ReportReport
Posted on by 2

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()

I have the same question (0)
  • Suggested answer
    huijij Profile Picture
    19,811 on at

    Hi Gokul,

    Please check if you have followed the steps described in the MS document about how to configure a connector and install an on-premises local agent.

    learn.microsoft.com/.../setup-deploy-on-premises-latest

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 586 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 311

#3
Diego Mancassola Profile Picture

Diego Mancassola 271

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans