title: System error - "the code cannot proceed because .dll was not found."
body: <p>I'm getting this error when I try to run my app:</p>
  
  <p><a href="https://i.stack.imgur.com/WGFs0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WGFs0.png" alt="error"></a></p>
  
  <p>I checked and there is no reason that I can see that it wouldn't be able to find <code>libnlopt-0.dll</code>. Here it is (note <code>GlassModelCalcualator</code> is the DLL that uses <code>libnlopt-0.dll</code>), in the <code>GlassModelCalcualatorDLL</code> folder:</p>
  
  <p><a href="https://i.stack.imgur.com/vGhdV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vGhdV.png" alt="image"></a></p>
  
  <p>and in the debug folder of <code>GlassModelCalcualatorDLL</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/iY65f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iY65f.png" alt="image"></a></p>
  
  <p>I have a different program that has a console which uses <code>GlassModelCalcualator.dll</code> and that also has this issue. To fix that, I had to put <code>libnlopt-0.dll</code> in the Debug folder of <code>GlassModelCalcualator</code>.</p>
  
  <p>I'm assuming this is not the same problem here since you can clearly see that <code>libnlopt-0.dll</code> is in <code>GlassModelCalcualator</code>'s Debug folder. </p>
  
  <p>Any ideas? </p>