title: "Can't find PInvoke DLL 'dbnetlib.dll'." error in Smart Device Application
body: <p>I am creating a program in Visual Studio Pro 2008, and I am trying to access a SQL database from my program. The device that is running the program is running on Windows CE, and it is a bar code scanner. When I run the code and try to establish a connection to the database, I get thrown a MissingMethodExeption which says:</p>
  
  <pre><code>Can't find PInvoke DLL 'dbnetlib.dll'.
  </code></pre>
  
  <p>From reseraching online, I found out that you need to instal the sql.ppc.we5.armv4i.cab file, however my device isn't installing it (One of my problems).</p>
  
  <p>Here is the code I am using to establish a connection with my SQL database. </p>
  
  <pre><code> string conString = "Data Source=OS4DPC05\\SQLEXPRESS;Initial Catalog=testing;Integrated Security=SSPI;User ID=**************;";
   Process.Start("\\windows\\wceload.exe", "'\\Program Files\\SmartDeviceProject2\\sql.ppc.wce5.armv4i.cab'");
          using (SqlConnection con = new SqlConnection(conString))
          {
              con.Open();
          }
  </code></pre>
  
  <p>That is just part of the code, but the program always stops at con.Open();</p>
  
  <p>Anyone know how to fix this problem? Any suggestions would be much appreciated. </p>