title: Getting error '80070002' from COM .dll
body: <p>I am moving a Classic ASP site from a Windows 2000 server to a Windows 2008 (both dev and prod). I have a .dll that was created in .NET 1.1. The error is occurring when function created in JScript located in this securityUtility.asp creates an ActiveXobject using the dll. The line looks as follows:</p>
  
  <p>function getProfileFromLdap(user, pw){</p>
  
  <p>&#9;var aClass, aProfile</p>
  
  <p>&#9;aClass =  new ActiveXObject("com.co.comp.security.ldap.LDAPLogin");
  ...
  }</p>
  
  <p>The error that is occurring is:
  error '80070002' 
  E:\SITES\WWW-COMPANYSITE-COM\SITE\BINS../../siteInc/securityUtility.asp, line 850</p>
  
  <p>I had run the following command to register the dll in the registry:</p>
  
  <p>"C:\Windows\Microsoft.NET\Framework\v1.1.4322\RegAsm" coSecurity.dll /tlb:coSecurity.tlb</p>
  
  <p>I don't know if it's worth mentioning but at one point the site worked perfectly in dev and erring when I attempted to move the site to production. I had moved the site to the new dev server (Windows 2008) so long ago. I had made notes so when I moved it up to production I knew what steps I had taken. I thought perhaps I forgot to record a step so in attempt to retrace what I did, I uninstalled the .dll and went through the steps I had recorded. It is now broken in dev but at one point it was working. </p>
  
  <p>Another thing I'm not sure is worth mentioning is this site was the first site on the new dev server. .NET 1.1 was installed prior to any other framework. 4.0 and 2.0 were installed after the fact. On the prod server 4.0 was installed first and then 1.1. Not sure if that's signficant or not. </p>
  
  <ul>
  <li><p>When the dev site was working I had confirmed the items were in the
  registry comparing them to the old production and the new dev
  servers and the new production</p></li>
  <li><p>On the old production server there was nothing in the GAC</p></li>
  <li><p>The coSecurity.dll is in the same file as the securityUtility.asp<br>
  (the page that the code belongs to).</p></li>
  <li><p>The Application pool for the has "enable 32-bit applications" as true
  for both of the new environments</p></li>
  <li><p>"Everyone" is granted full rights on the .dll</p></li>
  </ul>
  
  <p>I'm not sure what I'm missing! </p>