2011.03.05 No longer works

Mar 5, 2011 at 6:56 AM

Windows 7 x64 last updated

EasyHook use every day. March 5 2011 stopped working even EasyHook_2.5_Beta_Binaries.

Compile error:

"Injection is not supported if EasyHook is only accessible through the GAC. This usually indicates an attempt to inject from within a hooking target."

Mar 5, 2011 at 6:58 AM

EasyHook_2.6_Binaries does not work too.

Mar 5, 2011 at 12:00 PM
Edited Mar 5, 2011 at 12:02 PM

So, i do not know reason, but EasyHook.dll cashed in c:\Windows\assembly\GAC_MSIL\. After deleted all entries EasyHook.dll, my application is working again. Probably the file was cached for another application? I don't know.  Strange thing is that about a month application worked without problems.

Anyway, does not want anyone from the professionals available to write WPF & WCF dll, with built-in driver's IRP file system.  This would be very helpful.

*Sorry for my lousy english :)

Mar 6, 2011 at 8:58 PM

During an API hooking job I discovered the same issue.

I just went the route of entirely skipping the integrated GAC registration but instead just manually registering all my related assemblies as well as EasyHook.dll within the GAC. This also solves the problem and should also be the common way of doing this. Automatic registration is just intended to keep things easy, since manual GAC registration is very frustrating during development.