title: Problem with calling a managed DLL from VB 6 code
body: <p>I have ported VB6 code to VB.Net using the Visual Studio 2008 conversion wizard. The ported code compiles correctly.</p>
  
  <p>I have checkd the compiler option to register for COM interop on project properties. On building the project I get the DLL and TLB file.</p>
  
  <p>I have registered the assembly using following command</p>
  
  <pre><code>regasm myLib.DLL /tlb:myLib.tlb
  </code></pre>
  
  <p>After that I have GACed the assembly using </p>
  
  <pre><code>gacutil /i myLib.DLL
  </code></pre>
  
  <p>Now, the VB code that was consuming the DLL ...</p>
  
  <pre><code> Dim myObject
      Set myObject= CreateObject("myLib.MyObject")
  </code></pre>
  
  <p>..throws an error - </p>
  
  <blockquote>
    <p>Runtime Error 429, ActiveX componenet cant create object.</p>
  </blockquote>
  
  <p>WHat do I need to do to get this working correctly?</p>