PDA

Click to See Complete Forum and Search --> : Server.Create Object


Hutty
Jun 6th, 2000, 03:08 AM
I'm trying to create a server.create object, but I get the following error:

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/begasp/retrieveproperties.asp, line 9

Invalid class string



My code is:

<%
dim objtelephone
set objtelephone = Server.CreateObject("MyTelephone.Telephone")



Thanks

objTelephone.Color = "Blue"
objTelephone. Material = "Thermoplastic"
objTelephone.Weight = 22
objTelephone.NumberOfKeys = 12

nmretd
Jun 6th, 2000, 04:37 AM
Have you correctly registered the dll ?

Hutty
Jun 6th, 2000, 07:44 PM
What dll? I read a similar post where the dll was correctly registered. This was a user created dll. In my case I didn't create any dll. Just a file.

Mark Sreeves
Jun 6th, 2000, 09:06 PM
What do you mean by 'just a file'?

Hutty
Jun 6th, 2000, 09:11 PM
I'm working an example in this beginner ASP book. A simple six lines of code. The book has a website that has all the examples. When I go to the website and click on that particular example, it works. Not sure what my problem is. Only six lines of code.

Mark Sreeves
Jun 6th, 2000, 09:15 PM
OK, the website server must have a DLL installed on it with the class 'MyTelephone.Telephone'


the dll is probably called 'MyTelephone.dll"


Was there any software supplied with the book?

or is there provision to download if from their web site?

Hutty
Jun 7th, 2000, 01:20 AM
You are right Mark. The sample program did have a telephone.dll. Thanks for the help.