title: Redistribution of C# dll to be used by VB6
body: <p>We create a C# dll to be used with VB6 (ComVisible = true, Register for COM Interop). 
  In VB6 on developper PC, everything is working OK. </p>
  
  <p>We try to redistribute it on another PC. We are aware that we should regenerate the <strong>tlb</strong> file by using the following command line on a <strong>x64</strong> Windows </p>
  
  <pre><code>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe C:\CLYO\Clyo.Interfaces.dll /tlb:C:\CLYO\Clyo.Interfaces.tlb 
  </code></pre>
  
  <p>We also try with <strong>codebase</strong> </p>
  
  <pre><code>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe C:\CLYO\Clyo.Interfaces.dll /tlb:C:\CLYO\Clyo.Interfaces.tlb /codebase
  </code></pre>
  
  <p>but we continue to get <code>Error 429 - ActiveX component can't create object</code></p>
  
  <p><strong>Any Idea?</strong> </p>
  
  <p>Note: Our C# code use a different Guid for each class, and interface </p>
  
  <pre><code>[InterfaceType(ComInterfaceType.InterfaceIsDual)]
  [Guid("EC8D67C4-0B8B-4692-9CA4-8657805D9B40")]
  public interface IRestoFlash
  {
      ...
  }
  
  [ClassInterface(ClassInterfaceType.None)]
  [Guid("D068F8B5-AAC8-48D2-BEED-4505DBC802D6")]
  [ProgId("Clyo_Interfaces.RestoFlash")]
  public class RestoFlash:IRestoFlash 
  {
      ...
  }
  </code></pre>