Results 1 to 7 of 7

Thread: Server.Create Object

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    153
    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

  2. #2
    Addicted Member
    Join Date
    Sep 1999
    Location
    London, England
    Posts
    213
    Have you correctly registered the dll ?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    153

    server/object

    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.

  4. #4
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    What do you mean by 'just a file'?
    Mark
    -------------------

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    153

    SERVER CREATED OBJECT

    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.

  6. #6
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    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?
    Mark
    -------------------

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    153

    Server CreateObject

    You are right Mark. The sample program did have a telephone.dll. Thanks for the help.

Posting Permissions

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



Click Here to Expand Forum to Full Width