title: VBScript can't find object in .NET dll
body: <p>I created a .NET DLL <code>MyCustomLib</code> in Visual Studio 2015, consisting of a class</p>
  
  <pre><code>Imports System.Runtime.InteropServices
  &lt;ClassInterface(ClassInterfaceType.AutoDual)&gt;
  &lt;Guid("D42A39C8-01EC-4467-9AE3-DC22DCA895A4")&gt;
  Public Class MyClass
     Public Sub New()
         Dim frm As New MyForm
         frm.Show()
     End Sub
  End Class
  </code></pre>
  
  <p>and second class</p>
  
  <pre><code>Imports System.Runtime.InteropServices
  &lt;ClassInterface(ClassInterfaceType.AutoDual)&gt;
  &lt;Guid("D42A39C8-01EC-4467-9AE3-DC22DCA895A5")&gt;
  Public Class MyForm
    Sub New()
  
      ' This call is required by the designer.
        InitializeComponent()
  
      ' Add any initialization after the InitializeComponent() call.
  
    End Sub
  End Class
  </code></pre>
  
  <p>So, both have a parameterless constructor, the classes are public.
  I build it and register it using <code>regasm.exe</code> (the x64 one). Regasm tells me, that registration was successful. 
  Then I create a VBScript file to call the DLL:</p>
  
  <pre><code>'TestCall.vbs
  Dim oObject
  Set oObject = CreateObject("MyCustomLib.MyClass")
  </code></pre>
  
  <p>When I execute the vbs, I get an error <strong>80070002: The system cannot find the file specified.</strong>
  Why do I get this error?</p>