How to fix service activation exception after Windows Update KB5031323

Alessandro 15 Reputation points

After the Windows Update KB5031323 our service classes are giving an exception on the first call.

We get a directory not found exception and the .svc service is not activated. If we call a second time the service, then it's working.

Do someone has an idea?



A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,824 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wesley Li-MSFT 4,381 Reputation points Microsoft Vendor


    This issue seems to be causing a directory not found exception and the .svc service is not activated on the first call.

    Here are some general steps you can take to troubleshoot this issue:

    Windows Update: Ensure that your system is up-to-date with the latest patches and updates.

    Service Activation: Check if the service is activated properly. You can do this by going to Control Panel > Administrative Tools > Services. Find your service in the list, right-click on it and select Properties. Check if the service is set to start automatically.

    Event Viewer: Check the Event Viewer for any related errors. To do this, type event in the search bar, click on Event Viewer, and look under all entries under Windows Logs such as Application, Security, etc.

    Uninstall Update: If the issue started after a specific Windows update, you might want to consider uninstalling that update. You can do this by going to Settings > Update & Security > Windows Update > View update history > Uninstall updates. Select the update you want to uninstall and click Uninstall.

    Please note that these are general suggestions and might not work for all systems or configurations.