title: Error When Instantiating an Object
body: <p>I am in the middle of (trying) to create a Class Library available for use in VB6/VBA. With some assistance received <a href="https://stackoverflow.com/questions/3346620/making-a-dll-com-accessible">here</a> I have now done the following:</p>
  
  <ol>
  <li>Created a Class Library Project in Visual Studio 2010 Express and put the code in a Class Module.</li>
  <li>Learned I needed this wonderful thing called an "Interface"... Made one of those:)</li>
  <li>I opened the project properties and went to "Assembly Information" and checked "Make COM Visible". </li>
  <li>I went to "Advanced Compile" options and targeted .Net 2.0 (it's very simple code).</li>
  <li>Removed all references expect for "System".</li>
  <li>Built the project (no warnings or errors) and copied the DLL out of the Bin folder into C:\Windows\System32\</li>
  <li>Ran RegAsm /tlb. Everything seemes just fine.</li>
  </ol>
  
  <p>I popped open excel to run a quickie test and the TLB is available but I have two problems:</p>
  
  <ul>
  <li>I can see both the class and the interface in the Object Browser/Intellisense. </li>
  <li>When I try to create an instance of either object (<code>Set obj = New MyObj</code>)I get the error:</li>
  </ul>
  
  <blockquote>
    <p>Automation error
    The system cannot find the file specified. </p>
  </blockquote>
  
  <p>I can set a reference to the Object and the Intellisense can see it, I just get that error when I actually try to create the Object. Did I miss a step?</p>