How to configure NT Service DCOM

Source: Internet
Author: User

Write a service-type DCOMProgramAfter running, you find that the service program cannot be started when the client is connected, but another application is executed. Finally, through online data research, we found that the following steps are required to configure DCOM as a service type.

1. Configure the service as administrator or your current login user.

On the Control Panel, select management tools-services and select your services from the service list. Double-click the properties page, select "Logon", select "accounts", and enter the account name and password.

Or use the program in the Registry key

HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ <service name>.

2. Define DCOM as a service type.
You must specify the LocalService name in the DCOM guid. The method is as follows:
Open the Registry hkey_classes_root \ appid \ <DCOM guid> Add LocalService = <service name>
For example, my application is like this:
Hkey_classes_root \ appid \ {D2832CD1-F34B-496F-88D5-DBE79AF38470}
LocalService = xotecserver

If the application service program is interactive and a little different, you need to define it as follows:
change LocalService to _ LocalService, and then add ruaas = interactive user (Interactive User)
for example, my application is like this:
hkey_classes_root \ appid \ {D2832CD1-F34B-496F-88D5-DBE79AF38470}
_ LocalService = xotecserver
ruaas = Interactive User

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.