Tuesday, April 23, 2013

System.Runtime.InteropServices.COMException: Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA) - SharePoint 2013 Search

I'm building a SharePoint 2013 Farm with a quite complex search Topology.
My Topology is shown in this picture.



I'm using Windows Server 2012 as OS and I'm experiencing this strange behavior.
Basically, when I chose to edit content source from Central Administration, I receive an error.

The error is COM related:

System.Runtime.InteropServices.COMException: Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA)

To solve this issue, you can try to change a policy that told Windows to "forcefully unload the user registry at user logoff ". I've changed this policy on every server in my Topology but I suppose that only Admin components are affected by this behavior.

The policy can be changed using gpedit.msc.

The path of the policy is:
Computer Configuration->Administrative Templates->System-> UserProfiles

The policy is: “Do not forcefully unload the user registry at user Logoff”
Set this to "enabled".

Thanks to this article that point me to the solution. The article is about Windows Server 2008 but also Apply to Windows Server 2012.