Advice / Help Needed: Asynchronous Bidirectional DCOM with NT Services (NTSVC.OCX) 
Author Message
 Advice / Help Needed: Asynchronous Bidirectional DCOM with NT Services (NTSVC.OCX)

Here's what I've got working:

Platform:  Two NT Workstations
Environment: Both logged in as Administrator / same password

ActiveXexe client which uses CreateObject to create a multi-use
connector-type class implemented at an ActiveXexe server.  The connector
returns a shared reference to public not creatable server class.  The
clients then pass an object reference to themselves to the shared server
which issues callbacks to the client as needed.  This was modeled on the
Coffee example.  If server is started first, client connects to it.  If not,
it starts it and subsequent clients use it.  .  This works great locally,
remotely, and with unlimited clients.

Here's where I need Help / Advice:

I made the ActiveX Server an NT Service using NTSVC.OCX.
Problem 1) Server is started locally via Service Manager

When the client is run locally as a application, client starts a new local
instance of the server as an application.  It and all subsequent clients
connect to the local instance.  Clients won't connect to the NT Service
instance of the server.

Problem 2) Server service is started on a remote NT workstation.

When the client is run locally as an application, CreateObject fails with an
"Access Denied" message.

I then changed strategies and made the ActiveX Client an NT Service using
NTSVC.OCX.  Server is an ActiveXexe.

Problem 3) Regardless of whether the server is started by the Client service
locally or remotely or whether server is pre-started locally or remotely,
the Client service starts its own instance of the server app.  Subsequent
copies of the client started as applications will only connect to an
instance of the server started as an application, not the one started by the
Client Service.

Question: I *think* I need to have my server app running on NT Server in
order to get around the Access Denied security issue.  If I'm correct, would
someone tell my why ...  :-)

Right now I'm trying to troubleshoot  why I get "Cannot Create Object" when
both client (NTWKS) and server (NTSVR) are running as apps.  Any help or
insight into this problem would be appreciated.

Thanks.

Rob Fritz



Fri, 19 Oct 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Asynchronous bidirectional communication design issue

2. About the NT Service Control (ntsvc.ocx)

3. About the NT Service Control (ntsvc.ocx)

4. NTSVC.OCX NT Service Control

5. VB apps as NT services - NTSVC.OCX

6. Setting NT Services in VB (NTSVC.OCX)

7. NT Services: NTSVC.OCX

8. Running an app as an NT service - ntsvc.ocx

9. NT Services In VB5 Using NTSVC.OCX...

10. NT Service NTSVC.OCX and dependancies

11. About the NT Service Control (ntsvc.ocx)

12. Running an app as an NT service - ntsvc.ocx

 

 
Powered by phpBB® Forum Software