PATCH MY PC DOCS

Knowledge Base

We’re here to help if needed

Unable to find the Assembly: AdminUI.WqlQueryEngine, Version=5.0.0.0, Culture=neutral

The error message “Could not load file or assembly ‘AdminUI.WqlQueryEngine, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies.” occurs when the Configuration Manager console isn’t installed on the device running the Patch My PC Publisher. We use the assembly files within the Configuration Manager console to connect to ConfigMgr to perform the following actions:

  • Check the build number
  • Trigger a software update point synchronization
  • Create and manage ConfigMgr applications

Topics covered in this article:

Determine if You are Affected

There are a variety of different error messages that will occur depending on the action that occurred. Here’s an example of errors you will see in the PatchMyPC.log file.

An error occurred while trying to trigger a SUP sync: Unable to find the Assembly: AdminUI.WqlQueryEngine, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

An error occurred while connecting to SCCM: Unable to find the Assembly: AdminUI.WqlQueryEngine, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 [[PatchMyPC_Sccm.AssemblyResolver+AssemblyNotFoundException]]

An error occurred while connecting to Sms provider as System: Unable to find the Assembly: AdminUI.WqlQueryEngine, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 [[PatchMyPC_Sccm.AssemblyResolver+AssemblyNotFoundException]]

How to Resolve this Error

To resolve this error, you need to install the ConfigMgr console using the steps documented here Install console – Configuration Manager | Microsoft Docs.

More InformationImportant: After the ConfigMgr console is installed, you will need to perform the following steps to ensure the console assemblies are loaded within the Patch My PC Publisher.

Once the console is installed, perform the following steps:

  1. Close the Patch My PC Publisher UI
  2. Re-open the Publisher
  3. Navigate to the About tab and click Restart serviceCould not load file or assembly 'AdminUI.WqlQueryEngine, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
  4. These actions should resolve the issue

More InformationNote: In rare cases, if the console assemblies still aren’t detected, you may need to restart the computer for the assemblies to be detected.

Published On March 22, 2021