Edward,
What happens if you use that COM in other application (not ASP?) try to use it in Excel or Words macro and see what happens.
>I see what everyone is saying, but for some reason something is not working right. If I run getcompanylist() from a VFP form and return it to a edit box it works fine. However if I call it from an asp page I get this error. If I enclose it in a form it still returns the same error. Any ideas?
>
>Error Type:
>ad.setregistry ad.setregistry (0x800A0792)
>setregistry.getcompanylist c:\windows\classes\setregistry.vct Error in line 11 Object is not contained in a FORM. 1938
>/directory/directoryadmin.asp, line 28
>
>My asp page
>
><%@ Language=JavaScript % >
>
><%
>var xml = new ActiveXObject("ad.setregistry");
>
> % >
>
>
><body background = "commsfmbk.jpg">
><table border = 0 align = center width = 900 >
>
> <tr>
> <td height= 160>
> <img src=commsfm.jpg></img>
> </td>
> </tr>
>
> <tr>
> <td height = 80 align = center>
> <font size= 5><b>DIRECTORY MAINTENANCE</b></font>
> </td>
> </tr>
> <tr>
> <td>
> <table border = 1 align = center width = 800 >
> <%
> Response.Write(xml.GetCompanyList(-2147483646,"SOFTWARE\IPDIRECTORY"));
> % >
> </table>
> </TD>
> </TR>
></table>
></body>
>
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.