There was a problem loading the comments.

Fixing System.Management.ManagementException: Invalid Class Error

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

The Windows Management Instrumentation (WMI) service on Windows allows the License Manager to identify the PC it is running on and bind license keys.

The 'Invalid class' error shown in the log file means that the WMI service on Windows has likely been corrupted. 

To confirm this issue, try opening Computer Management on the PC:
  1. Open Computer Management:

37e32b397270b93aae1ddc5fea253f7bce53fe5ed0722a8b538ec9e24e6ece9323d880b83825aab6?t=659c1df7c71c9499d33c2dcda1fa5bb9

2. Open the WMI Control properties:

63c142609356c47bf0404019e181f5ed9ed794770201b78b3ab5d4fffc0cf2831ee9bdd6ed13eac9?t=2cf359edc0df6a3afb7ac490ae3d4394

This is the service that is the licensing uses, the same 'Invalid class' error should be shown here:

Broken:

image.png

Working:

8f6a3af9a8c5dd770f64c19c73a499009f9387e54b7575b032da267a817cbf0fbc3d8d3812a5715b?t=dd39d00b203d706ea124200d0519604e

 

If the WMI Control Properties shows Invalid class errors then the WMI repository can be salvaged with the following command in an admin command prompt:

Winmgmt /salvagerepository

image.png

This will rebuild the WMI repository and should fix the issue. The computer details should be shown in the WMI Control Properties and the License Manager should function correctly.


Share via

Related Articles


Self-Hosted Help Desk Software by SupportPal
© Civil Survey Applications