Article ID: 183607 - Last Review: June 29, 2004 - Revision: 2.1 How To Configure DCOM for Visual Basic Using DCOMCNFG.EXEThis article was previously published under Q183607 SUMMARY
This article explains how to use the DCOM configuration utility
DCOMCNFG.EXE to configure DCOM for remote client/server applications
created using Microsoft Visual Basic 5.0.
Incorrectly setting up security for DCOM client/server applications will typically result in the following errors:
Run-time error '429' ActiveX component can't create object.
-or-
Run-time error '70' Permission denied. This article does not discuss the settings required to enable client access through firewalls. Please contact Microsoft Technical Support to obtain assistance regarding firewalls, proxy servers, or domain controllers. MORE INFORMATION
The following settings will enable Windows NT or Windows 2000 to
communicate with an NT or Windows client and back (assuming that there are
no firewalls or proxy servers involved).
To configure your Visual Basic DCOM "Server" on an NT or Windows 2000machine, follow these steps: (Note that DCOMCNFG will only show servers that are EXEs. It will not show DLL servers.)
On the NT or Windows 2000 SERVER machine:
If your application works at this point, then you should not need to make any configuration settings on the client machines. If your client is receiving events raised from the server or has enabled the server to call it back, then the following steps might be necessary, depending upon your specific network: To configure your Visual Basic DCOM "Clients:" On the NT or Windows CLIENT machines:
NOTE: DCOM registry keys are intended for Legacy software and not for Proprietary software or programming convenience. REFERENCES
For more detailed information regarding DCOM security settings, please see
the following articles in the Microsoft Knowledge Base:
176799
(http://support.microsoft.com/kb/176799/EN-US/
)
: INFO: Using DCOM Config (DCOMCNFG.EXE) on Windows NT
182248 (http://support.microsoft.com/kb/182248/EN-US/ ) : How To : Use DCOM Config (DCOMCNFG.EXE) on Windows 95 For more information regarding using WIN95 as a DCOM server, please see the following article in the Microsoft Knowledge Base: 165101
(http://support.microsoft.com/kb/165101/EN-US/
)
: How To Use Windows as a DCOM Server
Visual Basic 5.0 can use remote events callbacks to enable two-way communication between DCOM clients and a DCOM server application. For more information regarding using remote events or callbacks with DCOM and Visual Basic 5.0, please see the following article in the Microsoft Knowledge Base: 175510
(http://support.microsoft.com/kb/175510/EN-US/
)
: FILE: VB5DCOM.EXE: Using Callbacks and WithEvents with DCOM
(c) Microsoft Corporation 1998, All Rights Reserved.Contributions by Randy Russell, Microsoft Corporation APPLIES TO
| Article Translations
|

Back to the top
