This is just weird. Here's the code :
AppDomain newDomain = AppDomain.CreateDomain("newDomain ", null,
new AppDomainSetup
{
ApplicationBase = @"D:\myDLLFolderFullPath\"
});
Assembly a = newDomain.Load("myAssembly");
This throws the "Could not load file or assembly" error.
I checked my Assembly's dll is located under the specified folder path, and the name of the Assembly is correct.
When I copy myAssembly.dll into the CurrentDomain's main folder, it works !
It behaves as if the ApplicationBase setting for the new AppDomain has absolutely no effect and keep pointing to the Current AppDomain's AppBase.
Any Ideas ?