|
-
Sep 30th, 2002, 12:45 PM
#1
Thread Starter
Lively Member
Ok what am I doing wrong.
Ok...I am new to these forums so be nice....lol.
Basically I have an activex exe that runs on a Win2k server.On a client machine I have a standard exe that is accessing the server activex exe. The server activex exe is already runnning as a process on the server. So I do not need to run it. On the client it I am declaring the events as public like this in the general declarations.
Public WithEvents goServerSide As prjServerSide.CServerSide
Then when I try set the object(hope i am using right terminology)
in my code I use this. And this is suppose to access it on the server.
Set goServerSide = CreateObject("prjServerSide.CServerSide")
I get the error message: Cannot Create Object. Error number is 492
I have set the Server IP address. And I have checked on server if it is running and it is.
Any help would be greatly appreciated. Thanks
-
Sep 30th, 2002, 05:24 PM
#2
Frenzied Member
hi,
if your object already runnig try to use GetObject() instead CreateObject().
See VB help for details
-
Oct 1st, 2002, 10:37 AM
#3
Thread Starter
Lively Member
Thanks,
But if it is running on the server what do I put as the path name.
Map a network drive to the activex exe and specify that as path name or the IP address of the server as the path name?
-
Oct 1st, 2002, 12:06 PM
#4
Frenzied Member
Try to specify a server side local path.
-
Oct 3rd, 2002, 02:35 AM
#5
Hyperactive Member
Try set [object] = CreateObject("Objectname.Classname", [Servername]), because you're instantiating the object from the server
-
Oct 3rd, 2002, 10:27 AM
#6
Thread Starter
Lively Member
Ok I have gotten it to the point to where it gives me Error Number 70. Permission Denied.
I have logged in on both machines as the network admin and it still gives that error.....Any ideas on this?
-
Oct 7th, 2002, 01:20 AM
#7
Lively Member
hi,
what u need is to configure DCOM permissions on both clients and server.
run dcomcnfg and find your server.
on the Defualt Security tab grant permission to Access and Launch options to the appropriate users.
-
Oct 7th, 2002, 01:45 AM
#8
Hyperactive Member
Originally posted by deja
what u need is to configure DCOM permissions on both clients and server.
I think that's not true, because it's a Win2K server. There you should better use COM+ to let the clients access the components on the server. (Also need this on the client, of course).
-
Oct 7th, 2002, 05:37 AM
#9
Lively Member
reply to JMvVliet:
maybe u didn't notice but the question considered to ActiveX EXE.
COM+ cannot run ActiveX EXE.
so in that case he need pemission to launch the server process.
-
Oct 7th, 2002, 05:51 AM
#10
Hyperactive Member
Reply to Deja, you're right, I didn't notice that point.
-
Oct 7th, 2002, 09:58 AM
#11
Thread Starter
Lively Member
I have gotten the activex exe to attempt to create. But I am recieving the permission denied error. Err. Number 70. Not quite sure what I need to do to give the permission rights to do this.
From what I have read from other post and such is that that error seems to tick off alot of people. Any help on this is appreciated.
Thanks
-
Nov 5th, 2002, 12:45 AM
#12
Hi Folks,
This is what I found in MSDN.
Permission denied (Error 70)
An attempt was made to write to a write-protected disk or to access a locked file. For example, this error will occur if an Open For Output statement is performed on a write-protected file.
Wonder if that helps.
Cheers!
Abhijit
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
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
|