Entra AD Connect System.NotSupportedException: The given path's format is not supported

Kadir KURTULUŞ 0 Reputation points
2025-04-30T06:39:24.69+00:00

Hello everyone,

I am trying to use swing migration to upgrade my existing Azure Active Directory Connect application. I am unable to run the Microsoft Entra Active Directory Connect V 2.4.1.131.0 setup without receiving the following error message. I am currently running the service on Windows Server 2016. I have installed a brand new Windows Server 2022 standard server. I have met all the prerequisites for Azure AD Connect. I am getting the same error on both the old and new servers. I used the links below for the setup. I have attached the log file created when the service failed.

Microsoft Entra Connect: Upgrade from a previous version to the latest

https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/how-to-upgrade-previous-version#swing-migration

Use a swing migration to upgrade

https://learn.microsoft.com/en-us/entra/identity/hybrid/connect/how-to-upgrade-previous-version#use-a-swing-migration-to-upgrade

The solution in this link did not work for me.

Getting An Error When Running Microsoft Azure Active Directory Connect (NotSupportedExecption)

https://learn.microsoft.com/en-us/answers/questions/46837/getting-an-error-when-running-microsoft-azure-acti?source=docs

User's image

[09:17:08.857] [ 1] [WARN ] Failed to read DisplayName registry key: An error occurred while executing the 'Get-ItemProperty' command. Cannot find path 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MicrosoftAzureADConnectionTool' because it does not exist.

[09:17:08.873] [ 1] [INFO ] Product Microsoft Entra ID Connection Tool is not installed.

[09:17:08.873] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Entra Connect Sync

[09:17:08.873] [ 1] [VERB ] Getting list of installed packages by upgrade code

[09:17:08.873] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {d61eb959-f2d1-4170-be64-4dc367f451ea}: verified product code {48a05ccc-90c8-4499-9be5-d344ab1e1860}.

[09:17:08.873] [ 1] [VERB ] Package=Microsoft Entra Connect Sync, Version=2.4.131.0, ProductCode=48a05ccc-90c8-4499-9be5-d344ab1e1860, UpgradeCode=d61eb959-f2d1-4170-be64-4dc367f451ea

[09:17:08.873] [ 1] [INFO ] Determining installation action for Microsoft Entra Connect Sync (d61eb959-f2d1-4170-be64-4dc367f451ea)

[09:17:08.873] [ 1] [INFO ] Product Microsoft Entra Connect Sync (version 2.4.131.0) is installed.

[09:17:09.263] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Azure AD Connect Agent Updater

[09:17:09.263] [ 1] [VERB ] Getting list of installed packages by upgrade code

[09:17:09.263] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {39301604-293d-4a9e-aa3c-5b1453142528}: no registered products found.

[09:17:09.263] [ 1] [INFO ] Determining installation action for Microsoft Azure AD Connect Agent Updater (39301604-293d-4a9e-aa3c-5b1453142528)

[09:17:09.263] [ 1] [INFO ] Product Microsoft Azure AD Connect Agent Updater is not installed.

[09:17:09.263] [ 1] [INFO ] DetectInstalledComponents stage: Verifying required DCOM registry keys are present.

[09:17:09.279] [ 1] [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\MachineAccessRestriction' is present.

[09:17:09.279] [ 1] [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\MachineLaunchRestriction' is present.

[09:17:09.279] [ 1] [INFO ] DetectInstalledComponents::CheckBinaryRegistryValueContainsData : Registry value 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\DefaultLaunchPermission' is present.

[09:17:09.607] [ 1] [INFO ] ServiceControllerProvider: GetServiceStartMode(seclogon) is 'Manual'.

[09:17:09.607] [ 1] [INFO ] ServiceControllerProvider: verifying EventLog is in state (Running)

[09:17:09.873] [ 1] [INFO ] ServiceControllerProvider: current service status: Running

[09:17:09.873] [ 1] [INFO ] DetectInstalledComponents stage: PowerShell version verified.

[09:17:09.873] [ 1] [INFO ] DetectInstalledComponents: customSD -

[09:17:09.873] [ 1] [INFO ] DetectInstalledComponents: No custom permissions!!

[09:17:09.873] [ 1] [INFO ] Performing direct lookup of upgrade codes for: Microsoft Entra Connect Sync Administration Agent

[09:17:09.873] [ 1] [VERB ] Getting list of installed packages by upgrade code

[09:17:09.873] [ 1] [INFO ] GetInstalledPackagesByUpgradeCode {886051ec-1165-4df8-a492-19d1e0ff57ee}: no registered products found.

[09:17:09.873] [ 1] [INFO ] Determining installation action for Microsoft Entra Connect Sync Administration Agent (886051ec-1165-4df8-a492-19d1e0ff57ee)

[09:17:09.873] [ 1] [INFO ] Product Microsoft Entra Connect Sync Administration Agent is not installed.

[09:17:09.873] [ 1] [INFO ] Checking for DirSync conditions.

[09:17:09.873] [ 1] [INFO ] DirSync not detected. Checking for AADSync/AADConnect upgrade conditions.

[09:17:09.873] [ 1] [INFO ] Sync engine is not present. Performing clean install.

[09:17:11.026] [ 1] [INFO ] Page transition from "Welcome" [LicensePageViewModel] to "Error" [ErrorPageViewModel]

[09:17:12.154] [ 1] [ERROR] RootWizardPageViewModel: An unhandled exception occurred during a page load.

Exception Data (Raw): System.NullReferenceException: Object reference not set to an instance of an object.

at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ErrorPageViewModel.OnLoad(NavigateDirection direction)

at Microsoft.Online.Deployment.Framework.UI.WizardPages.RootWizardPageViewModel.ActivatePage(IWizardPage page, NavigateDirection direction)

[09:17:12.154] [ 1] [ERROR] A terminating unhandled exception occurred.

Exception Data (Raw): System.NullReferenceException: Object reference not set to an instance of an object.

at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.ErrorPageViewModel.OnLoad(NavigateDirection direction)

at Microsoft.Online.Deployment.Framework.UI.WizardPages.RootWizardPageViewModel.ActivatePage(IWizardPage page, NavigateDirection direction)

at Microsoft.Online.Deployment.OneADWizard.UI.WizardPages.RootPageViewModel.<>c__DisplayClass16_0.<ShowTerminatingErrorPage>b__0()

at Microsoft.Online.Deployment.OneADWizard.App.SafeInvokeAction(Action action)

[09:17:12.154] [ 1] [INFO ] Page transition from "Error" [ErrorPageViewModel] to "Error" [ErrorPageViewModel]

[09:17:12.154] [ 2] [ERROR] A terminating unhandled exception occurred.

Exception Data (Raw): System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.NotSupportedException: The given path's format is not supported.

at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)

at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)

at System.Management.Automation.Host.PSHostUserInterface.<>c__DisplayClass39_0.<FlushPendingOutput>b__0()

at System.Threading.Tasks.Task.Execute()

--- End of inner exception stack trace ---

---> (Inner Exception #0) System.NotSupportedException: The given path's format is not supported.

at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)

at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)

at System.Management.Automation.Host.PSHostUserInterface.<>c__DisplayClass39_0.<FlushPendingOutput>b__0()

at System.Threading.Tasks.Task.Execute()<---

[09:17:12.373] [ 1] [INFO ] Page transition from "Error" [ErrorPageViewModel] to "Error" [ErrorPageViewModel]

[09:17:12.388] [ 2] [ERROR] A terminating unhandled exception occurred.

Exception Data (Raw): System.AggregateException: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. ---> System.NotSupportedException: The given path's format is not supported.

at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)

at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)

at System.Management.Automation.Host.PSHostUserInterface.<>c__DisplayClass39_0.<FlushPendingOutput>b__0()

at System.Threading.Tasks.Task.Execute()

--- End of inner exception stack trace ---

---> (Inner Exception #0) System.NotSupportedException: The given path's format is not supported.

at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)

at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)

at System.Management.Automation.Host.PSHostUserInterface.<>c__DisplayClass39_0.<FlushPendingOutput>b__0()

at System.Threading.Tasks.Task.Execute()<---

[09:17:12.420] [ 1] [INFO ] Page transition from "Error" [ErrorPageViewModel] to "Error" [ErrorPageViewModel]

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,689 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rahul Gupta 245 Reputation points Microsoft Employee
    2025-05-05T08:59:47.12+00:00

    Hello,

    Thank you for reaching out, can you check that you are on latest .net framework for this to work perfectly fine please?

    Regards

    Rahul Gupta

    Microsoft Customer support

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.