I have a .dll, lets call it A. It references dll B. B references dll C. They all live in the same directory.
A->B->C
I am trying to load assembly A, by calling Assembly.LoadFrom([fullpathname]).
A FileNotFoundException gets thrown, even though assembly B and C are in the same directory.
-Could this be happening because assembly B and C are dependent on something else?
-I am under the impression that if this is the case, the Assembly.LoadFrom call will search and try to find all dependecies. I am getting the feeling that it is not finding one of them.
-I understand the Fusion Log Viewer may be of help. However, I cannot run this from code. There is an .exe I am running that it doing this. Can I still use the Fusion Log Viewer, and how does that compare with getting the FusionLog from code, such as doing a Exception.FusionLog and writing it to a file?
I have been searching and trying to understand this for days to no avail.
Thanks
Aucun commentaire:
Enregistrer un commentaire