Invoke and assembly references/folders
- From: Kopiad@xxxxxxxxxxx
- Date: 27 Oct 2006 14:47:24 -0700
I have two assemblys A and B in folder 1. Assembly A references
assembly B.
In another folder 2, I have a program C that do a
Assmebly.LoadFile(<absolute path to assembly A) and creates an instance
of a class in A. When invoking a method (from the program C) in
assembly A that creates an instance of a class in assembly B I get a
TargetInvocationException with an inner FileNotFoundException.
The system is looking for assembly B in program Cs folder instead of
assembly As folder.
If I copy assembly B to program Cs folder it woks.
How do I make it search for the assembly in the "correct" folder?
Regards
Hans Forssell
.
- Follow-Ups:
- Re: Invoke and assembly references/folders
- From: Michael Nemtsev
- Re: Invoke and assembly references/folders
- Prev by Date: Re: MCSD and MCSE
- Next by Date: Re: MCSD and MCSE
- Previous by thread: form design question
- Next by thread: Re: Invoke and assembly references/folders
- Index(es):