Consider the following scenario:
- You deploy Microsoft Exchange Server 2019 in your organization.
- You install and configure Active Directory Federation Services (AD FS) in Exchange Server 2019. This enables clients to use AD FS claims-based authentication to connect to Outlook on the web (OWA) and the Exchange admin center (EAC).
- You install Cumulative Update 2 for Exchange Server 2019.
In this scenario, you can’t sign in to OWA and EAC, and you receive an error message that resembles the following:
Server Error in '/ecp or owa' Application.
Unable to cast object of type 'Microsoft.Exchange.Security.Authentication.AdfsIdentity' to type 'System.Security.Principal.WindowsIdentity'.
Additionally, Event ID 1003 is logged in the Event Viewer and shows the same exception error:
An internal server error occurred. The unhandled exception was: System.InvalidCastException:
Unable to cast object of type 'Microsoft.Exchange.Security.Authentication.AdfsIdentity' to type 'System.Security.Principal.WindowsIdentity'.