"Failed to get address for method: CreateIdentityHandle2" error when you run the Azure Active Directory Sync tool configuration wizard

S’applique à : Cloud Services (Web roles/Worker roles)Azure Active DirectoryMicrosoft Intune

PROBLEM


When you run the Microsoft Azure Active Directory Sync tool configuration wizard, you receive the following error message:
Failed to get address for method: CreateIdentityHandle2 from library C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services\msoidcli.dll. GetLastError code: 127

CAUSE


This problem occurs if you're running an earlier version of the Microsoft Online Services Sign-in Assistant.

SOLUTION


To resolve this issue, follow these steps:
  1. Uninstall any versions of the Microsoft Online Services Sign-in Assistant that are currently installed on the directory synchronization computer.
  2. Install the latest version of the Microsoft Online Services Sign-In Assistant from Microsoft Online Services Sign-In Assistant for IT Professionals RTW.

MORE INFORMATION


Still need help? Go to Microsoft Community or the Azure Active Directory Forums website.