Here's a possible fix for your error:
1.Start by identifying which process or service is triggering this error.
2.Check Task Manager for the process ID 5708
(in the above sample, but will probably be different when you go back to check).
3.Check which identity that process or service is running as.
Task Manager will also show you this in the User
column. If it is a service, you can check Service Manager to see which identity it is configured to run as.
4.Once you have identified the user or service account that this process uses, make a note of it and head to Registry Editor.
5.Search the registry for the class GUID
. For each instance found, change the permissions to grant the above service account and the SYSTEM identity FULL
privilege to the key and its subkeys. (I have seen suggestions to add Administrators here as well, but it's best to target this to the specific service account, if possible.)
6.Once your process identity has permissions on the class key[s], reboot the system, and it should be resolved.
Similar posts, if you want to compare notes:
[1] - https://www.tenforums.com/general-support/108499-event-id-10031-a.html
[2] - https://social.technet.microsoft.com/Forums/en-US/325ab240-5eff-4a4b-9f5b-2eaf2a4002ed/an-unmarshaling-policy-check-was-performed-when-unmarshaling-a-custom-marshaled-object-and-the-class?forum=systemcenterservicemanager