Invalid Class String from activeX dll

Results 1 to 2 of 2

Thread: Invalid Class String from activeX dll

  1. #1
    Join Date
    Dec 1969

    Default Invalid Class String from activeX dll

    Hello,<BR> I am trying to create a VB component to run in the ASP environment. The component simply connects to a database, and adds a record.<BR><BR>I have tested it in the VB environment, and created a .dll, which registered correctly. However when I try to instance the new object I get:<BR><BR><BR>Server object error &#039ASP 0177 : 800401f3&#039 <BR><BR>Server.CreateObject Failed <BR><BR>/com/SearchCode/Add.asp, line 10<BR><BR>The source is as follows:<BR><BR>set connection = Server.CreateObject("test.customer") %&#062;<BR><BR><BR>As you can see from the directory listing below, the project was called test and the class is called customer.<BR><BR>E:COMSearchCodeCustomerClass&#062 ;dir<BR> Volume in drive E has no label.<BR> Volume Serial Number is 5091-0BC8<BR><BR> Directory of E:COMSearchCodeCustomerClass<BR><BR>02/05/00 10:30a &#060;DIR&#062; .<BR>02/05/00 10:30a &#060;DIR&#062; ..<BR>02/05/00 10:30a 2,049 customer.cls<BR>02/05/00 10:30a 189 MSSCCPRJ.SCC<BR>02/05/00 10:26a 24,576 test.dll<BR>02/05/00 10:26a 973 test.exp<BR>02/05/00 10:26a 2,556 test.lib<BR>02/05/00 10:30a 988 test.vbp<BR>02/05/00 10:30a 31 test.vbw<BR> 9 File(s) 31,362 bytes<BR> 1,438,611,456 bytes free<BR><BR>E:COMSearchCodeCustomerClass&#062;<BR> <BR><BR>Thanks in advance.<BR><BR>tony<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Invalid Class String from activeX dll

    When you get an "Invalid Class String" error, that means that there is no registry entry mapping to the name you specified in Server.CreateObject. VB should automatically register your component once it&#039s built... Soooooooooooooooooooo....<BR><BR>Are you sure that your project&#039s name is test, and your class&#039s name is customer? I agree that those are the filename&#039s corresponding, but those are also the names specified in VB?<BR><BR>Check your registry to see if test.customer exists (run regedit). If it doesn&#039t exist, do:<BR><BR>regsvr32 test.dll

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts