Exchange server 2016 upgrade from CU19 to CU22 failure

Benard Mwanza 1,001 Reputation points
2022-08-08T13:20:33.683+00:00

Greetings,

I'm currently battling exchange 2016 upgrade from cu19 to CU22, have tried all that i can but the error keeps on failing on the same step Front end client service. Below is the full error that i'm getting either using the setup.exe or PowerShell unattended cmdlet.

The following error was generated when "$error.Clear();  
 .  
"$RoleInstallPath\Scripts\Update-AppPoolManagedFrameworkVersion.ps1" -AppPoolName:"MSExchangeOABAppPool"  
-Version:"v4.0";  
 get-OabVirtualDirectory -server $RoleFqdnOrName -DomainController $RoleDomainController |  
set-OabVirtualDirectory -OAuthAuthentication:$true;  
 " was run: "System.Runtime.InteropServices.COMException  
(0x80070003): The system cannot find the path specified.  
 at System.DirectoryServices.DirectoryEntry.Bind(Boolean  
throwIfFail)  
 at System.DirectoryServices.DirectoryEntry.Bind()  
 at  
System.DirectoryServices.DirectoryEntry.get_AdsObject()  
 at  
System.DirectoryServices.PropertyValueCollection.PopulateList()  
 at  
System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName)  
 at  
System.DirectoryServices.PropertyCollection.get_Item(String propertyName)  
 at  
Microsoft.Exchange.Management.Metabase.IisUtility.CheckForAuthenticationMethod(DirectoryEntry virtualDirectory,  
AuthenticationMethodFlags method, Boolean ignoreAnonymousOnCert)  
 at  
Microsoft.Exchange.Management.SystemConfigurationTasks.SetOabVirtualDirectory.StampChangesOn(IConfigurable dataObject)  
 at Microsoft.Exchange.Configuration.Tasks.SetObjectTaskBase`2.PrepareDataObject()  
 at  
Microsoft.Exchange.Management.SystemConfigurationTasks.SetVirtualDirectory`1.PrepareDataObject()  
 at  
Microsoft.Exchange.Management.SystemConfigurationTasks.SetExchangeVirtualDirectory`1.PrepareDataObject()  
 at  
Microsoft.Exchange.Management.SystemConfigurationTasks.SetOabVirtualDirectory.PrepareDataObject()  
 at  
Microsoft.Exchange.Configuration.Tasks.SetTaskBase`1.InternalValidate()  
 at  
Microsoft.Exchange.Configuration.Tasks.SetSystemConfigurationObjectTask`3.InternalValidate()  
 at  
Microsoft.Exchange.Management.SystemConfigurationTasks.SetExchangeVirtualDirectory`1.InternalValidate()  
 at  
Microsoft.Exchange.Management.SystemConfigurationTasks.SetOabVirtualDirectory.InternalValidate()  
 at  
Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()  
 at  
Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean  
terminatePipelineIfFailed)  
 at Microsoft.Exchange.Configuration.Tasks.Task.ProcessTaskStage(TaskStage taskStage,  
Action initFunc, Action mainFunc, Action completeFunc)  
 at Microsoft.Exchange.Configuration.Tasks.Task.ProcessRecord()  
 at System.Management.Automation.CommandProcessor.ProcessRecord()".  
  
The Exchange Server setup operation didn't complete. More details can be found in ExchangeSetup.log located in the  
<SystemDrive>:\ExchangeSetupLogs folder.  
  
  
  
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,604 questions
{count} votes

Accepted answer
  1. Aholic Liang-MSFT 13,846 Reputation points Microsoft Vendor
    2022-08-18T08:44:25.737+00:00

    Hi @Benard Mwanza ,

    Thank you guys for your contributions. The solution was, i recreated the OAB virtual directory in that server, rebooted, then rerun the upgrade CU setup.exe, and completed without issues.

    Great to know that you've already thought of a solution and really appreciate it for your sharing!
    By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others.". and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:
    [Exchange server 2016 upgrade from CU19 to CU22 failure]
    Issue Symptom:

    I'm currently battling exchange 2016 upgrade from cu19 to CU22, have tried all that i can but the error keeps on failing on the same step Front end client service.

    The following error was generated when "$error.Clear();  
      .  
     "$RoleInstallPath\Scripts\Update-AppPoolManagedFrameworkVersion.ps1" -AppPoolName:"MSExchangeOABAppPool"  
     -Version:"v4.0";  
      get-OabVirtualDirectory -server $RoleFqdnOrName -DomainController $RoleDomainController |  
     set-OabVirtualDirectory -OAuthAuthentication:$true;  
      " was run: "System.Runtime.InteropServices.COMException  
     (0x80070003): The system cannot find the path specified.  
      at System.DirectoryServices.DirectoryEntry.Bind(Boolean  
     throwIfFail)  
      at System.DirectoryServices.DirectoryEntry.Bind()  
    

    The Solution:
    i recreated the OAB virtual directory in that server, rebooted, then rerun the upgrade CU setup.exe, and completed without issues.

    You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks!

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Aholic Liang-MSFT 13,846 Reputation points Microsoft Vendor
    2022-08-09T06:04:26.687+00:00

    Hi @Benard Mwanza ,
    Have you prepared the prerequisites before upgrading to Cumulative Update 22?
    Please refer to the steps in the link below to re-upgrade and see if the issue persists:
    Exchange updates step by step guide | Exchange (microsoft.com)
    229360-2022-8-9-1.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Amit Singh 4,896 Reputation points
    2022-08-10T11:09:50.343+00:00

    This issue occurs because the LDAP display name attribute is incorrect.

    Check this article for help - https://learn.microsoft.com/en-us/exchange/troubleshoot/setup/organization-preparation-failed

    Also, check the .NET Framework version and temporarily disable any anti-virus software and third-party programs before the update process.

    0 comments No comments

  3. Benard Mwanza 1,001 Reputation points
    2022-08-12T05:56:27.52+00:00

    Thank you guys for your contributions. The solution was, i recreated the OAB virtual directory in that server, rebooted, then rerun the upgrade CU setup.exe, and completed without issues.

    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.