Results 1 to 5 of 5

Thread: runtime error

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2001
    Posts
    43

    runtime error

    An exception of type "Microsoft VBScript runtime error: object required: 'Server' was not handled"

    I keep getting this error when trying run this code:

    Set objComponent = Server.CreateObject("Test.ProcessInputs")
    objComponent.Outputs
    Set objComponent = Nothing

    Any suggestions?

  2. #2
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    Arrow hi

    give more details buddy...

    as to where u are using the code etc

    beause the stm looks okay

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2001
    Posts
    43
    When I do this it works:

    <%
    Set objComponent = Server.CreateObject ("Test.ProcessInputs")
    %>

    When I do this I get the error:

    <SCRIPT Language=vbscript RUNAT=Server>
    Set objComponent = Server.CreateObject ("Test.ProcessInputs")
    </SCRIPT>

  4. #4
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    Unhappy suprising

    Looks okay

  5. #5

    Thread Starter
    Member
    Join Date
    Nov 2001
    Posts
    43
    Server.CreateObject doesn't work in my SCRIPT tags for some reason.

    Is there a way I can use my ocx properties in my asp (<% %>)? The only reason I'm using SCRIPT tags because I can't use my ocx properties in asp (<% %>), but I can use the ocx properties in my SCRIPT tags.

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