EPM - Step Up Authentication Fails on Windows Due to Webview2 Not installed as Admin
Symptom
EPM Step Up Authentication Fails
End user experience:
End user may see the expected EPM dialog (saying it's out to try MFA with their IDP), but then they get another EPM dialog saying, "Authentication failed" immediately, without being prompted for MFA
In SupportInfo, trace folder, epm_mfa_ui.x.trace log file, an entry similar to below is shown:
2025.01.04 11:23:39 PID:10782 TID:1868 CvfHostWindow::Create: ERROR: CreateCoreWebView2EnvironmentWithOptions failed. hr=-2147024894
2025.01.04 11:23:39 PID:10782 TID:1868 <no class name>::WinMain: ERROR: hostWindow.Create failed. hr=0
Environment
24.8;24.9;24.10;24.12 EPM EPM Agent
EPM Windows Agent
Windows 11
User is NOT local administrator
Cause
Possible cause:
Webview2 runtime is not installed as administrator.
Although it may appear to be installed, perhaps it is only installed in the user context.
Resolution
1) Download the webview2 runtime(Evergreen Standalone Installer)
At the time of this article it can be downloaded from msdn using this link https://developer.microsoft.com/en-us/microsoft-edge/webview2/?cs=3457492030&form=MA13LH
2) Note the name of the filename of the executable you downloaded.
For the example link from step one the file name was MicrosoftEdgeWebView2RuntimeInstallerX64.exe
3) Open an elevated command prompt by right clicking cmd.exe > run as administrator
4) Navigate to the location where you downloaded the installer and enter the filename (whatever you found in step #2)
5) After Webview2 runtime is installed as admin, test Step Up Authentication again