PDA

Click to See Complete Forum and Search --> : Much ado about DCOM [Resolved]


Dave Sell
Sep 28th, 2004, 09:00 PM
Hi,

I have used this forum and MSDN as references, but still I cannot get my DCOM client to attach to my DCOM server.

1) I created the server EXE and set it to Binary Compatible, solidifying its CLSID.

2) I created a client which can use CreateObject and get an instance of the server. This works on both PCs on my LAN, the Client PC and the Server PC.

3) I ran the server EXE on the Client PC to "register" it with the system.

4) I can run the client EXE on the Client PC and get it to instantiate an instance of the server EXE.

5) I change the Client PC settings in the DCOMCFGMGR to activate DCOM communications, as seen by the following pics.

6) I set up the server to listen for Clients.

7) When I run the client EXE on the Client PC, I get the error in GIF_1.

GIFs 1-5 are the Client PC DCOM configuration.

Can you see where I am going wrong?

GIFs 6-10 are the Server PC DCOM configuration.

Thanks for showing me the way!

Dave

Dave Sell
Sep 28th, 2004, 09:03 PM
...

Dave Sell
Sep 28th, 2004, 09:07 PM
3

Dave Sell
Sep 28th, 2004, 09:08 PM
4

Dave Sell
Sep 28th, 2004, 09:08 PM
5

Dave Sell
Sep 28th, 2004, 09:08 PM
6

Dave Sell
Sep 28th, 2004, 09:08 PM
7

Dave Sell
Sep 28th, 2004, 09:08 PM
8

Dave Sell
Sep 28th, 2004, 09:09 PM
9

Dave Sell
Sep 28th, 2004, 09:09 PM
10

Dave Sell
Sep 28th, 2004, 09:35 PM
Well this is a sad state of affairs. I turned off my personal firewall (Kierio) on both PCs and now - IT WORKS!

And to think I pulled all my hair out for NOTHING!

Well I spose this thread can represent the correct way to set up DCOM...

Steve Stunning
Sep 28th, 2004, 10:32 PM
Glad to see your firewall was the problem. This is my settings w/o the firewall.

------------------
| Server Side |
------------------

[General]
Authentication Level: DEFAULT

[Location]
Run application on this computer

[Security]
Default
Default
Custom

[End Points]
Default System Protocals

[Identity]
The Interactive User

-----------------
| Client Side |
-----------------

[General]
Authentication Level: DEFAULT

[Location]
Run application on the following computer

[Security]
Default
Custom
>Everyone
>Interactive
>System
Custom

[End Points]
Default System Protocals

[Identity]
The Interactive User