title: vb.net: test if a com dll is registered at runtime
body: <p>How can I check at runtime whether a dll has registered correctly?  Currently trying the following, but it never finds the dll even though it is registered with <code>regsvr32</code>.  Does the Assembly class only work for system assemblies, and if so, what do I use for my own ones?</p>
  
  <pre><code>    'check com dll connection for diagnostics
      Try
          Dim asm As Assembly = Assembly.LoadWithPartialName("mycomdll.mycomclass")
          DebugText.AppendText("DLL registered" + vbNewLine)
      Catch ex As Exception
          DebugText.AppendText("DLL test failed" + vbNewLine)
          DebugText.AppendText(ex.ToString() + vbNewLine)
      End Try
  </code></pre>