Results 1 to 3 of 3

Thread: Microsoft VBScript runtime error, object required

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    9

    Unhappy Microsoft VBScript runtime error, object required

    Hi@ll!

    I'm having a strange problem on my web app...

    This app uses COM developed by other enterprise so I can't have full control on the source code.

    The code on the asp page is:
    Code:
          1  Dim oXMLResponse
          2  Dim oAction
          3	Dim sResponse
    	
          4	Set oAction = Server.CreateObject("MyCOM.Action")
    
          5	sResponse = oAction.Submit()
    when code reaches the 5th line it generates the error : "Microsoft VBScript runtime error, object required"

    I made some research on this and find some solutions related with COM installation. Although I tried them all, still doesn't work.

    But on the other side using
    VB Code:
    1. Set MyCOM = CreateObject("MyCOM.ACTION")
    on another dll works fine...strange isn't it?

    Anyone has an idea on what's happening.

    Thanks in advance for your help.

    Cheers,
    Pedro

  2. #2
    New Member
    Join Date
    Jan 2005
    Posts
    13

    Re: Microsoft VBScript runtime error, object required

    Look the problem I had with the Submit:

    http://www.vbforums.com/showpost.php...48&postcount=5

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2005
    Posts
    9

    Re: Microsoft VBScript runtime error, object required

    Thanks for help Dr_Michael but I think that's not the problem...

    What I do in my javascript code is:
    Code:
    FormName.submit()
    And there's no problem here. The form properties are as follows:
    Code:
    <FORM NAME="FormName"  enctype="multipart/form-data" ACTION="/app/common/asp/fileHandler.asp" method="post" target="iresponse">
    On the asp page I have:
    Code:
    Set oAction = Server.CreateObject("MyCOM.Action")
       sResponse = oAction.Submit()
    And the error I get is "Microsoft VBScript runtime error, object required" when trying to do oAction.Submit, although I can do this:
    Code:
    Set MyCOM = CreateObject("MyCOM.ACTION")
    on VB6 code with no problem.

    If you can help on this I'll thank you a lot.

    Cheers,
    Pedro

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