LoadException and Load assembly -
12-19-2007
, 05:48 AM
Hello,
I try to create an app able to retrieve Types from .net Assemblies.
First case (this one works fine):
My application has "A.dll" referenced at compile time. I add "B.dll" at
runtime. I can inspect "B.dll" to get all of its Types. I load it using
Assembly.Load nor AppDomain.CurrentDomain.LoadFrom(...).
Using the same method, I'm adding "C.dll" assembly wich refer to "B.dll"
(some types in C inherits from some B classes).
I got an exception (System.IO.FileNotFoundException) saying "Unable to laod
file or assmebly 'B, Version=0.1.0.0, Culture=neutral, PublicKeyToken=[***]'
or one of its dependencies. File not found." (I translated it from the
French version I got).
This exception is raised on the Assembly.GetTypes() method.
Does some one could help me?
Kind Regards
Cedric |