title: Exception from HRESULT: 0x8007007E
body: <p>I'm trying to add an unmanaged <code>dll</code> in my <code>c#</code> code. When I run the code, I get <code>dll</code> not found exception. What else is needed in my code to debug this error?</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Runtime.InteropServices;
  
  
      namespace FPGA_DLL
      {
           class Program
          {
  
  
               const string DllPath = "C:\\Users\\testuser\\Desktop\\Dip\\ConsoleApplication1\\mcp2210_dll_um_x86.dll";
  
  
              /* API for getting access to the USB device */      
              [DllImport(DllPath, EntryPoint = "Mcp2210_GetConnectedDevCount", CallingConvention = CallingConvention.StdCall)]
              public static extern int Mcp2210_GetConnectedDevCount(ushort vid, ushort pid);
  
  
  
              static void Main(string[] args)
              {
                  const ushort MCP2210_VID = 0x04D8;   // VID for MCP2210
                  const ushort MCP2210_PID = 0x00DE;   // PID for MCP2210
  
                  int devCount = Mcp2210_GetConnectedDevCount(MCP2210_VID, MCP2210_PID);
                  Console.WriteLine(devCount);
  
              }
          }
      }
  </code></pre>
  
  <p>Exception details
  Unable to load <code>DLL</code> </p>
  
  <blockquote>
    <p>'C:\Users\testuser\Desktop\Dip\ConsoleApplication1\mcp2210_dll_um_x86.dll':
    The specified module could not be found. (Exception from HRESULT:
    0x8007007E)</p>
  </blockquote>