System.InvalidCastException when you change passwords in Outlook on the web in Exchange Server 2019 and 2016

Kehtib: Exchange Server 2019Exchange Server 2016

Symptoms


Users who are assigned the RBAC role type MyMailboxDelegation are unable to change their passwords through Outlook on the web in Microsoft Exchange Server 2019 or Exchange Server 2016. In addition, an exception is recorded:

Method invocation target threw an exception: System.InvalidCastException: Unable to cast object of type 'Microsoft.Exchange.Data.Directory.ADRawEntry' to type 'Microsoft.Exchange.Data.Directory.ADObject'

Resolution


To fix this issue, install one of the following updates:

References


Learn about the terminology that Microsoft uses to describe software updates.