title: Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154 VB.net
body: <p>I code in VB.net under Visual Studio 2008. I have this error and I don't understand why.</p>
  
  <blockquote>
    <p>Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154</p>
  </blockquote>
  
  <p>I use a DLL and I want to compile it in 64bit. I have the following code:</p>
  
  <pre><code>Imports MetroProDAT_Library
  
  Public Class Data
      Public attr As ZygoDataAttributes
      Public oData As ZygoDataFile
  
      Public Sub LoadData(ByVal FileName As String)
          Dim idx As Double
          Dim jdx As Double
  
          oData = New ZygoDataFile  '///this sentence bug
          attr = oData.Attribute
      End Sub
  End Class
  </code></pre>