HOWTO: Use Win95 as a DCOM Server

Last reviewed: June 5, 1997
Article ID: Q165101
The information in this article applies to:
  • Microsoft Visual Basic Enterprise Edition for Windows, version 5.0

SUMMARY

To use a Windows 95 computer as a Distributed Component Object Model (DCOM) server, you need to configure the computer to run DCOM applications. Using a Windows 95 computer as a DCOM server will not provide the same features as a Windows NT 4.0 computer. Performance and security will be more limited. Additionally, you will have to perform some steps manually that are provided automatically by Windows NT. For instance, you will probably want to add shortcuts to the server components in your startup group and you will need to run RPCSS.EXE before you will be able to access the server component.

Because you need to have the server component running before trying to use the client, you need some mechanism to keep the server running. The easiest way to do this is to have a blank form in the server. You may set the visible property of the form to "False."

MORE INFORMATION

DCOM was designed to run on Windows NT 4.0 Server and Workstation. To configure a Windows 95 computer for use as a DCOM server, download DCOM95.EXE and DCM95CFG.EXE available from the OLE Development section of the Microsoft Web Site at:

http://www.microsoft.com/oledev

DCOM95.EXE is also available on the Microsoft Visual Basic 5.0 CD-ROM (Enterprise, Professional and Standard editions) in the \Pro\Tools\DCOM95 directory.

After downloading and saving DCOM95.EXE, do the following:

  1. Double-click DCOM95.EXE and proceed through the installation of DCOM95. This process requires you to reboot your system upon completion.

    NOTE: If you intend to install DCM95CFG.EXE at the same time, you can forgo rebooting your computer until the completion of DCM95CFG.EXE installation.

  2. Double-click DCM95CFG.EXE. This will install the DCOMCNFG.EXE utility that allows you to configure a DCOM server component. This requires you to reboot your system upon completion.

  3. Change the key below in the Windows 95 registry:

    HKEY_LOCAL_MACHINE\Software\Microsoft\OLE\EnableRemoteConnect

    to the following:

    Y

    NOTE: Failure to set this key results in the following error on the client:

    "Run-time error '429': ActiveX component can't create object"

  4. Run DCOMCNFG on the Windows 95 Server. Select the server component and click the "Properties" button. Select the "Location" tab and ensure that the "Run application on this computer" check box is selected.

    Select the "Security" tab. Select either "Use default access Permissions" or "Use custom access permissions." If you opt to use custom permissions, click the Edit button.

    Use the "Add Access Permissions" dialog box to grant or deny access to users of the server component. Click OK to close the "Add Access Permissions" dialog box. Click OK again to close the "Access Permissions" dialog box. Then click Apply to put your access permissions into effect. If you do not set custom access permissions, your server component will use the default access permissions for the computer. Default access permissions are set from the "Distributed COM Configuration Properties" dialog box. Select the tab labeled "Default Security" to set access permissions as described above.

    NOTE: Failure to set the access permissions will result in the following error on the client:

    "Run-time error '70': Permission denied"

  5. While it is not necessary to place a shortcut to RPCSS.EXE (found in your Windows\System folder) into your startup group, it is advisable because RPCSS.EXE needs to be running on the server before clients can connect.

    NOTE: Failure to run RPCSS.EXE before attempting to connect to it will result in the following error on the client:

    "Run-time error '-2147023174 (800706ba)': Automation error"

    This error message decodes to "The RPC server is unavailable."

  6. Place a shortcut to the server component you want to automate through DCOM into the startup group. Again, this is not necessary, but because the server component must be running before a client can access it, this is a good technique to ensure the component is always running.

    NOTE: Failure to run the server component results in the following error on the client:

    "Run-time error '429': ActiveX component can't create object"

REFERENCES

DCOM for Windows 95 release notes, located at:

http://www.microsoft.com/oledev


Additional query words: rpcss
Keywords : vb5all vb5howto VBKBAutomation VBKBAX VBKBComp VBKBExe kbhowto
Technology : kbole
Version : 5.0
Platform : WINDOWS
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.