title: VB6 Error: Run-time Error '-2146232576 (80131700)' Automation Error
body: <p>I understand this question has few answers on the web and stackoverflow; but it is around MS Word and Excel and I am using neither.</p>
  
  <p>I have a C# ComVisible dll which adds two numbers and I am calling it from a VB6 application. I have used interfacing, generated GUIDs, etc and it works perfectly fine in Windows 7 environment which has .Net Framework 4.5 installed.
  Note: My C# dll is marked to target .Net 3.5 and above.</p>
  
  <p>I do the same thing on XP which has .Net 4 ( 4 Client Profile and 4 Extended) installed.
  I have registered the dll using "regasm /codebase". Whenever I <strong>create the object</strong> of my dll in the XP machine, it throws an error:
  <strong>Run-time Error '-2146232576 (80131700)' Automation Error</strong></p>
  
  <p>What could be wrong in the configuration which works fine on Windows 7 but not on XP ?</p>
  
  <p>Thanks for your comments in advance.</p>