title: c# app can't find dll in its working directory
body: <p>I just switched from C++ to C# and I am a bit confused about referencing DLLs.</p>
  <p>I have a third party DLL and a simple testing application that uses some of its methods. When I compile the project, everything goes well, but when I run the compiled app on another computer, I've got an error that says that the DLL is missing even though the DLL is in the app's working directory. What's even more strange is that I have access to the source code of another app that is dependent on an older version of this DLL and this app works well.</p>
  <p>I've gone through the code and all the solution settings without finding anything really different.</p>
  <p>Can you tell me how to reference a <code>.dll</code> from a working dir (Visual Studio 2010)?</p>
  <hr />
  <p>Below is the exception:</p>
  <pre><code>System.IO.FileNotFoundException was unhandled
  
  Message=Could not load file or assembly 'TIS.Imaging.ICImagingControl32, Version=3.2.4.1146, Culture=neutral, PublicKeyToken=257805929e8b7928' or one of its dependencies. The system cannot find the file specified.
  
  Source=ICtestapp
  
  FileName=TIS.Imaging.ICImagingControl32, Version=3.2.4.1146, Culture=neutral, PublicKeyToken=257805929e8b7928
  
  FusionLog=WRN: Assembly binding logging is turned OFF.
  
  To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
  
  Note: There is some performance penalty associated with assembly bind failure logging.
  To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
  
   StackTrace:
        at ICtestapp.Form1.InitializeComponent()
        at ICtestapp.Form1..ctor()
        at ICtestapp.Program.Main()
   InnerException: 
  </code></pre>