title: How do I register a .NET COM DLL with Regsvr32?
body: <p>I have a VB6 application that uses a COM DLL. The DLL is written in C#. In the C# project properties I have checked the &quot;<code>Register for COM interop</code>&quot; option. The VB6 app works fine on my development machine. The C# code follows this format exactly: <a href="http://www.codeproject.com/KB/vb-interop/csCom.aspx" rel="nofollow noreferrer">CodeProject C# COM Example</a></p>
  <p>When deploying to other machines, <code>Regsvr32.exe</code> gives me the following error when I try to register the DLL:</p>
  <blockquote>
  <p>The module &quot;MyCOM.dll&quot; was loaded but the entry-point DLLRegisterServer was not found.</p>
  </blockquote>
  <p>What does this mean?<br />
  No tutorials/documentation I've read about COM DLLs say anything about &quot;<em>entry-point DLLRegisterServer</em>&quot;.</p>
  <p>We have had MAJOR problems using <code>RegAsm.exe</code> on different machines, so we really need a solution where we can run <code>regsvr32.exe</code> instead that will work for any machine that we deploy to (i.e. XP, Vista, Windows 7, x86 machines, x64 machines, etc.)</p>
  <p>What do I need to add to my C# code to make it register-able with <code>regsvr32.exe</code>?</p>