The message defined in the title of this post, along with the HResult 0x8007007A occasionally occurs while creating an instance of a Windows Workflow Foundation Runtime.
The error text is pretty self explanitory, and using Reflector over the Workflow Foundation assemblies I have narrowed down the problem to one of the following calls in ADVAPI32.DLL.
SetKernelObjectSecurity RevertToSelf OpenProcessToken GetKernelObjectSecurity
I have eliminated RevertToSelf() because it takes no input parameters, so can't be passing in a data structure that is too small.
GetKernelObjectSecurity takes as input a structure, and this could possibly be wrong, but this error is transient, with no apparent reproduction steps.
I think have a feeling it has to do with memory management somewhere in the app, but can't track down a good definition of what the HResult means. Can anyone point me in the direction of a good definition of this HResult?