Hi, I have 4 assemblies:
- Tester.exe
- ToyInterface.dll
- ToyFactory.dll --> reference (ToyInterface.dll)
- Toy.dll --> reference (ToyInterface.dll)
Tester.exe
internal ICollection<string> Scan(string path){
return ToyCollection = _reportFactoryType.GetMethod(FACTORY_GET_TOYS).
Invoke(_ToyFactory, null);
}
ToyFactory.dll
...try
{
// Load assembly:
Assembly asm = Assembly.LoadFrom(fileFullPath);
// Reflect ToyInterface types:
IEnumerable<Type> types = asm.GetExportedTypes();
}
and I recieve an exception
Could not load file or assembly 'ToyInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.":"ToyInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
The binding info from fuslogvw.exe shows that the assembly is accessed in the Tester.exe Enviroment path. Why is that, and how can I change this?