Am I doing this right?? (Config.Register)

Nov 22, 2010 at 5:25 PM
Edited Nov 22, 2010 at 5:26 PM

When i'm doing this Config.Register( "This description can be anything.", @"SomePathToAnExecutable.exe", "MyInjectionDll.dll");

I get the error:

There was an error while connecting to target: System.BadImageFormatException: Unable to load given assembly [SomePathToAnExecutable.exe] for reflection.

Is this a valid NET assembly? ---> System.BadImageFormatException: Could not load file or assembly [SomePathToAnExecutable.exe] or one of its dependencies. The module was expected to contain an assembly manifest.


Am I right in thinking that SomePathToAnExecutable is the process that you want to hook into???

Does the executable have to be managed code then??

Dec 5, 2010 at 2:10 AM

Note : Someone might actually be able to help me. See here where I asked the same question on StackOverflow and got a response.
Hopefully the start of a discussion.

-- Lee