Share via


System.Management.ManagementException: Invalid class

Question

Sunday, July 7, 2019 10:36 AM

Hello.

When I launch a application with "PhotonControl", I got following error message:

PhotonControl Error

Failed to query processes. Exception:

System.Managemnt.ManagementException: Invalid class

at System.Management.ManagementException.ThrowWithException(ManagementStatus.errorCode)

at System.Management.ManagementObject.Get()

at PhotonControl.Helper.ProcessInfo..ctor(Process process)

at PhotonControl.Helper.PhotonHandler.GetActiveProcesses(Int 32& serviceCount, Int32& appCount, Int64& memory)

When I go to Manage->Services and Applications->WMI Control->Properties, I can see following dialog:

Failed to initialize all required WMI classes.

Win32_Processor: WMI: Invalid class

Win32_WMISetting: WMI: Invalid class

Security information: Successful

Win32_OperatingSystem: WMI: Invalid class

I think the PhotonControl Error is caused by this. Is there any way to fix this problem?

PS: I don't have a backup of the WMI.

All replies (5)

Monday, July 8, 2019 7:37 AM ✅Answered | 1 vote

Hi,

If problem only happens when using specific 3rd party application, then, application re-installation is worthy to have a try, in order to re-install its own WMI relate components.

Besides, Tool mentioned in “WMI Troubleshooting” can be considered as reference:
/en-us/windows/win32/wmisdk/wmi-troubleshooting

Best Regards,
Eve Wang

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Wednesday, July 10, 2019 2:28 AM

Hi,

How things are going there on this issue?

Please let me know if you would like further assistance.

Best Regards,
Eve Wang   

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Wednesday, July 17, 2019 9:22 AM

Hi,

Is there any update?

Please click “Mark as answer” if any of above reply is helpful. It would make this reply to the top and easier to be found for other people who has the similar problem.

Best Regards,
Eve Wang

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Sunday, July 21, 2019 12:45 PM

Thank you for the help!


Monday, July 22, 2019 1:00 AM

Hi,

It’s my pleasure. If there is any more questions or concerns, please feel free to post on the forum.

Best Regards,
Eve Wang

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].