Forum Discussion
Microsoft Exchange Compliance Audit Service is not starting up
We have an Exchange Server 2019 and recently I found out that one of the Updates are failing to install. This is the update failing to install: KB5030877
Looking at the logs, I found out that this is the error for failing to install the update:
[11:59:37] [Error] System.TypeInitializationException: The type initializer for 'Microsoft.Exchange.ProvisioningAgent.AdminLogProvisioningHandler' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Office.Audit, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at Microsoft.Exchange.Data.Storage.Auditing.AssemblyLoader.LoadDependencies()
at Microsoft.Exchange.ProvisioningAgent.AdminLogProvisioningHandler..cctor()
--- End of inner exception stack trace ---
at Microsoft.Exchange.ProvisioningAgent.AdminLogProvisioningHandler.OnComplianceAssemblyResolveEvent(Object sender, ResolveEventArgs args)
at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
I get the similar error in ECP Portal.
Now we have tried installing the update via Command Line with administrator privileges etc but it all fails. Same if we try to uninstall the last update. This is the last update we got:
Everything seems to be related to this Microsoft Service which does not start:
AD Topology Service is running and restarting it does not fix the issue. I am wondering if anyone else has had this issue and know either how to troubleshoot further as to why this service fails to start or have it fixed please. Thank you.
1 Reply
- LeonPavesicSilver Contributor
Hi Madhu Perera,
I can see that you're encountering difficulties with the Microsoft Exchange Compliance Audit Service failing to start on your Exchange Server 2019, leading to issues with installing update KB5030877. The error message points to a failure in loading the 'Microsoft.Office.Audit, Version=15.0.0.0' assembly.Here are some suggestions to address the problem:
Reset Service State and Rerun Setup: Run a PowerShell script from an elevated PowerShell window located in the Exchange Server\V15\Bin directory. Execute ServiceControl.ps1 AfterPatch and then restart your server.
Uninstall and Reinstall the .msp File: Launch the update from an administrative command prompt, complete the installation, and reboot the server.
Adjust Service Startup Type: Set the startup type of the Compliance Audit Service to "Delayed Start" to allow dependencies to initialize properly.
Extend Registry Key "ServicesPipeTimeout": Increase the value of the "ServicesPipeTimeout" registry key, especially if the service startup is slow.
Here are some useful links:
CU13 Installation – KB5030877 – Exchange Server 2019 – Frankys Web Forum
Exchange Server 2019 and 2016 August 2023 security update installation fails on non-English operating systems - Microsoft Support
Repair failed installations of Exchange Cumulative and Security updates - Exchange | Microsoft Learn
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)