|
-
Jan 25th, 2005, 11:12 AM
#1
Thread Starter
New Member
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:
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
-
Jan 26th, 2005, 02:38 AM
#2
New Member
Re: Microsoft VBScript runtime error, object required
-
Jan 26th, 2005, 04:51 AM
#3
Thread Starter
New Member
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:
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|