PDA

Click to See Complete Forum and Search --> : Error --> Server.CreateObject Failed ??? Help !


nmretd
May 29th, 2000, 10:33 PM
I have created an ActiveX DLL in VB6 and created a class called Visit.

I am calling it in ASP:

<%@ Language=VBScript %>

<html>

<%
Dim objVisit
set objVisit = server.CreateObject("Project1.Visit")

%>

</HTML>

However I get the following Error:

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/local/Test.asp, line 12 800401f3

Does anybody know what I am doing wrong ?

dvst8
May 30th, 2000, 12:13 AM
did you register the dll first?

nmretd
May 30th, 2000, 01:20 AM
Thanks for your reply dvst8.

I created the dll but I don't think I have registered it. How do I go about registering my dll ?

nmretd.

Cerebrate
May 31st, 2000, 01:27 AM
since you are using VB6, to create your dll file, you just simply select "Make <project>.dll" in the "file" menu. VB6 will create the dll file and register it at the same time.(maybe you did), or you can register it yourself.
go to windows "start"->"Run"-> enter "regsvr32 <project>.dll" (make sure you target where the file is.).
that should do it.

I hope this will help

Cerebrate

[Edited by Cerebrate on 05-31-2000 at 02:30 PM]

nmretd
May 31st, 2000, 01:36 AM
That's excellent, thanks a lot !

nmretd

dvst8
Jun 2nd, 2000, 12:49 AM
did you get it working nm?

nmretd
Jun 2nd, 2000, 12:58 AM
Yes I got it working, you were right I hadn't registered the dll file. It's working fine now.

nmretd.