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.
Once the console is installed, perform the following steps:
- Close the Patch My PC Publisher UI
- Re-open the Publisher
- Navigate to the About tab and click Restart service
- These actions should resolve the issue