title: C# Unable to load DLL (Module could not be found HRESULT: 0x8007007E)
body: <p>error:Unable to load DLL 'x.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)</p>
  
  <p>OS: Windows 7</p>
  
  <p>I have two stations, Visual Studio 2012, using .net 4.0; the other don't have VS installed
  On the first station with VS2012 I have a C# solution with a C++ project imported.
  I'm using:</p>
  
  <pre><code>    [DllImport("x.dll", CallingConvention = CallingConvention.Cdecl)]
      [return: MarshalAs(UnmanagedType.I4)]
  </code></pre>
  
  <p>On this station is working.</p>
  
  <p>But when I moved on the other station (that don't have VS installed) it appear that error.
  If I install VS, it's working.</p>
  
  <p>What are some possible reasons for this problem to occur? Any ideas on what I could be missing or how I could debug this problem?</p>