I have Assembly A which late binds Assembly B using the following
code...
Assembly b = Assembly.LoadFile(@"C:\dev\B.dll");
object o = b.CreateInstance( "NameSpaceB.ClassB" );
object oEmitObj = Activator.CreateInstance (o.GetType(),false);
object[] args = new object[1]{m_Arg1};
o.GetType().InvokeMember("Process", BindingFlags.InvokeMethod, null,
oEmitObj, args);
Assembly B contains a reference to an Assembly C. When I run the code,
I get an exception message saying that Assembly C cannot be found.
When i place Assembly C in the bin of Assembly A... then it works. Is
there a way around this? Ideally, I would like Assembly A to have
nothing to do with Assembly C because the assemblies are bound
dynamically, and I don't want to keep having to put new assemblies in
A's bin each time I build a new one.
Thanks in advance for responses.