title: Could not load file or assembly '***.dll' or one of its dependencies
body: <p>I have this dll that I created a long time ago and use to connect to the db of a specific software that I develop for. I have had no issues for well over 4 years and countless applications with this dll.</p>
  
  <p>Trying to deploy my latest creation, I get the following error: </p>
  
  <pre><code>System.IO.FileNotFoundException: Could not load file or assembly '***.dll' or one of its dependencies. The specified module could not be found.
  </code></pre>
  
  <p>So, for every dll I ever wrote, I always made a simple forms application to test that dll just by itself. Running that simple app yielded the same error. The dll doesn't load or use anything else than: System, System.Data, System.XML. So as far as depencies of it go, I don't see anything wrong.</p>
  
  <p>By the way everything works on a dev station. The problem is limited to deployment stations. .Net and the necessary redistributables, since I do everything in C++, are deployed and working.</p>
  
  <p>Running FUSLOGVW.exe showed everything as working fine.</p>
  
  <p>Running depends.exe said: Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.</p>
  
  <p>I already tried rewriting the whole thing. Which yielded the same results.</p>
  
  <p>Clues anyone?</p>
  
  <p><strong>EDITS</strong></p>
  
  <p>Here is the total error message:</p>
  
  <pre><code>See the end of this message for details on invoking \"
  just-in-time (JIT) debugging instead of this dialog box.\"
  
  ************** Exception Text **************\"
  System.IO.FileNotFoundException: Could not load file or assembly 'connectionTo.dll' or one of its dependencies. The specified module could not be found.\"
  File name: 'connectionToJobboss32.dll'\"
     at TESTConnection.Form1.button1_Click(Object sender, EventArgs e)\"
     at System.Windows.Forms.Control.OnClick(EventArgs e)\"
     at System.Windows.Forms.Button.OnClick(EventArgs e)\"
     at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)\"
     at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)\"
     at System.Windows.Forms.Control.WndProc(Message&amp; m)\"
     at System.Windows.Forms.ButtonBase.WndProc(Message&amp; m)\"
     at System.Windows.Forms.Button.WndProc(Message&amp; m)\"
     at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)\"
     at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)\"
     at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\"
  \"
  
  
  
  ************** Loaded Assemblies **************\"
  mscorlib\"
      Assembly Version: 4.0.0.0\"
      Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)\"
      CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll\"
  ----------------------------------------\"
  TESTConnection\"
      Assembly Version: 1.0.3996.18980\"
      Win32 Version: \"
      CodeBase: file:///C:/Program%20Files%20(x86)/conn/TESTConnection.exe\"
  ----------------------------------------\"
  System.Windows.Forms\"
      Assembly Version: 4.0.0.0\"
      Win32 Version: 4.0.30319.1 built by: RTMRel\"
      CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll\"
  ----------------------------------------\"
  System.Drawing\"
      Assembly Version: 4.0.0.0\"
      Win32 Version: 4.0.30319.1 built by: RTMRel\"
      CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll\"
  ----------------------------------------\"
  System\"
      Assembly Version: 4.0.0.0\"
      Win32 Version: 4.0.30319.1 built by: RTMRel\"
      CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll\"
  ----------------------------------------\"
  </code></pre>
  
  <p>There is no errors in the event viewer.</p>