title: How to use a DLL/TLB from VB6 in VB.Net
body: <p>I have a DLL and its TLB which works in VB6. I added a reference to the DLL and code to use it. The program builds without an error but gives me a runtime error:</p>
  
  <p>The type initializer for "the dll name" threw an exception.</p>
  
  <p>I am guessing I need to register the DLL or something but do not know how to proceed. BTW, both the DLL and TLB are in my project directory.</p>
  
  <p>Any advice is greatly appreciated.</p>
  
  <p>TIA,
  John</p>
  
  <hr>
  
  <p>Thanks for your response Hans. I may not have been clear. I am not programming in VB6. I inherited the DLL (and do not have the source code) and the client wants me to use it in my VB.Net application. I do not have a way to debug the DLL unless I can do that in VS2008.</p>
  
  <p>Thanks,
  John</p>