title: COM Error in ADODB connection
body: <p>In my console application i have this simple database connectivity code. But it shows COM exception error in ADODB.Connection line.</p>
  
  <pre><code>  Module Module1    
          Sub Main()
              Dim cn As New ADODB.Connection() //error 
              cn.ConnectionString = "provider=sqloledb;server=localhost;database=northwind;uid=&lt;username&gt;"
              cn.Open()
          End Sub    
      End Module
  </code></pre>
  
  <p>I added <code>Microsoft Activex Data objects 2.8</code> library in reference,but error appeared.
  I changes the library to Microsoft Activex Data objects 6.0 library, but still it shows the error.
  When i run the applicaiton first it shows one error-</p>
  
  <p><em><code>The procedure entry point _LoadVersionedResourceEx@16 could not be located in MSDART.dll.</code></em></p>
  
  <p>and then </p>
  
  <pre><code>COM Exception unhandled:
  Retrieving the COM class factory for component with CLSID {00000514-0000-0010-8000-00AA006D2EA4} failed due to the following error: 8007007f The specified procedure could not be found. (Exception from HRESULT: 0x8007007F).
  </code></pre>
  
  <p>Im using windows 7, Visual studio 2010, vb.net</p>