title: com class library registration
body: <p>i have created a com class library with vb.net. i have registered the dll with regasm. Then i imported and used it to a vb6 project. I have noticed that if i unregister the library and register it again then i get the following error:</p>
  
  <p>Run-time error '-2147024894 (80070002)': Automation error.</p>
  
  <p>In order to make the library usable again, i have to rebuilt the library with different ClassId, InterfaceId, EventsId at the classes and then register the new dll.</p>
  
  <p>is this happening on purpose and this should be the functionality or am i doing something wrong?</p>
  
  <p>Thanks in advance.</p>
  
  <p>PS: it also does the same thing if i overwrite the registered file with the same file or if i rename its folder and then rename it back to its previous name. Rebuid and re-registered is needed.</p>