Inject inside a dll

Aug 21, 2010 at 9:55 AM

How would I inject inside of a dll.  It fails on Inject, this is because it will retrieve the name of the assemby that is doing the injection thinking that is the process name which does not exist. I get an error that  could not find the process "MyDllAssembly", this is a dll not an exe name of the app.

Aug 24, 2010 at 4:08 PM



System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'MyDLL, Version=, Culture=neutral, PublicKeyToken=9af94c555412cdaa' or one of its dependencies. The system cannot find the file specified.

Here is the exception.  Notice the MyDLL, where is it looking for this file? I define the Main class in MyDLL.dll does it have to be in an exe instead?

File name: 'MyDLL, Version=, Culture=neutral, PublicKeyToken=9af94c555412cdaa'

at Hook.Main..ctor(IContext InContext, String InChannelName)