-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Invoking the main method of the target application is broken. It's assumed that
invoking any method from any assembly other than the injected ones, is also
broken.
When loading an assembly the CLR requests registry keys which the virtual
registry isn't able to provide. These are all related to policies which the CLR
needs to apply on the assembly.
The problem is tracked down to (for example) the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default
Running with administrator privileges, it's possible to get handles until the
Fusion subkey. Trying to get a handle to PublisherPolicy and beyond always
results in ERROR_FILE_NOT_FOUND, even if these keys are visible and accessible
with the regedit utility. The result is the same for both C# and native C++.
A possible cause for this issue would be that the CLR uses custom options and
custom access rights matching the original security descriptor. For example,
when querying such policy keys the CLR uses the custom access rights 0x20119.
While the engine always uses default access rights.
Original issue reported on code.google.com by simon_al...@hotmail.com on 16 Jun 2010 at 6:15