title: Could not load assembly exception when using Assembly.LoadFile
body: <p>here's my scenario:</p>
  
  <p>I have three projects: two DLLs and one console application, let's name them foo.dll, bar.dll and console.exe. Console.exe loads foo.dll using Assembly.LoadFile(@"c:\foo.dll"). Foo.dll's project has a reference to bar.dll and makes use of a class. Console.exe loads foo.dll fine, the problem occurs when foo.dll tries to use bar.dll's class. I get a "could not load assembly: "bar.dll" blah blah exception.</p>
  
  <p>Some points:</p>
  
  <ul>
  <li>All projects are strong named</li>
  <li>Would prefer to not use the GAC</li>
  <li>Bar.dll is in c:\bar.dll</li>
  </ul>
  
  <p>So everything is in the same local directory, the correct dlls are being referenced (via project properties, and I've used Reflector to make sure the assembly versions are correct). If I install bar.dll to the GAC everything works as expected.</p>
  
  <p>I think it has something to do with the Assembly.LoadFile call, and making a hop to the second DLL, but I'm not sure.</p>
  
  <p>Thanks for your time and input.</p>