Results 1 to 12 of 12

Thread: Ok what am I doing wrong.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2002
    Posts
    90

    Exclamation 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

  2. #2
    Frenzied Member andreys's Avatar
    Join Date
    Sep 2002
    Location
    Los Angeles
    Posts
    1,615
    hi,
    if your object already runnig try to use GetObject() instead CreateObject().

    See VB help for details

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2002
    Posts
    90
    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?

  4. #4
    Frenzied Member andreys's Avatar
    Join Date
    Sep 2002
    Location
    Los Angeles
    Posts
    1,615
    Try to specify a server side local path.

  5. #5
    Hyperactive Member JMvVliet's Avatar
    Join Date
    May 2001
    Location
    Papendrecht, Netherlands
    Posts
    310
    Try set [object] = CreateObject("Objectname.Classname", [Servername]), because you're instantiating the object from the server

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Sep 2002
    Posts
    90
    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?

  7. #7
    Lively Member
    Join Date
    Aug 2002
    Posts
    126
    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.

  8. #8
    Hyperactive Member JMvVliet's Avatar
    Join Date
    May 2001
    Location
    Papendrecht, Netherlands
    Posts
    310
    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).

  9. #9
    Lively Member
    Join Date
    Aug 2002
    Posts
    126
    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.

  10. #10
    Hyperactive Member JMvVliet's Avatar
    Join Date
    May 2001
    Location
    Papendrecht, Netherlands
    Posts
    310
    Reply to Deja, you're right, I didn't notice that point.

  11. #11

    Thread Starter
    Lively Member
    Join Date
    Sep 2002
    Posts
    90
    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

  12. #12
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228
    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
  •  



Click Here to Expand Forum to Full Width