title: What causes a .net program to look for files in System32 or SysWOW64?
body: <p>I have code that is dependent on a third parties dll that normally is installed in the system folder. When I run some code referencing this dll it works fine as it picks it up from either System32 or SysWOW64 depending on the bit version of the process. But with some other code it works only if the dll is in the bin folder, if not then file not found exception is thrown.</p>
  
  <p>What causes a .net program to look for files in System32 or SysWOW64 respectively?</p>