|
-
Sep 29th, 2001, 04:40 AM
#1
Thread Starter
Junior Member
ActiveX component can't create object
Im using an activeX component on my web page. Basically its stored on the client side and is called from web page. When this webpage is on the local computer it works fine, but when i put it onto my intranet server and try to run it i get the error:
ActiveX component can't create object
How can i resolve this error?
Thanks
Sythe, xxx
P.S This page is only going to be on the intranet, not internet, so security problems should not matter, i think 
P.P.S
The code i am using to call the ActiveX object is
Code:
<script language="VBScript">
<!--
Sub Launch(App, Param)
Dim oLaunch
Set oLaunch = CreateObject("Xloader.run")
oLaunch.Application = App
oLaunch.Parameters = Param
oLaunch.Launch
Set oLaunch = Nothing
End Sub
-->
</script>
Last edited by sythe; Sep 29th, 2001 at 04:43 AM.
Sythe
-
Sep 29th, 2001, 07:10 PM
#2
You're using late binding which is okay. Just a lot more overhead.
This code assumes that the ActiveX component in question is on the node where the code is running & that it's registered -
but the script is running on the SERVER, so it has to invoke the node -
Code:
Dim oLaunch as Object
' should be
Set oLaunch = CreateObject("Xloader.run","?????")
Do you meet all the above assumptions? I don't think so, because the calling node is the server, it may not know the client node to do the SCM nodename lookup. If it does know the client node change the ??? to nodename.
This code has it on the web server. This is probably where it should be:
Code:
Dim oLaunch as Object
Set oLaunch = CreateObject("Xloader.run","MySrvr")
If not, part II here is easier. Because it will work no matter where it is invoked. CLient or server.
-
Sep 30th, 2001, 05:04 AM
#3
Thread Starter
Junior Member
Thanks a lot, this has really helped!
Loads of fluff gets sent your way 
Thanks again,
Love Sythe
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
|