Re: DCOMCNFG nightmare with service

Tech-Archive recommends: Speed Up your PC by fixing your registry



As I mentioned previously, I've set both ImageExtractor Class and
ImageExtractorService to run using the same Administrator account identity.

That's not it I'm afraid, I just double checked to be sure.

This is really trying my patience. What could it be?

"Brian Muth" wrote:


"markiemooster" <markiemooster@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:17E92F7E-2509-40B2-9A80-58E72FC79D3D@xxxxxxxxxxxxxxxx
I've written an ATL service and added an ATL simple object using VS2008. If
I pass /RegServer to the service on the command line (making it operate as a
standard .EXE), and run my test app all is fine. However, if I unregister it
(/UnregServer), and then pass /Service to the service on the command line
(making it operate as a real service), in my test app CoCreateInstance fails
with CO_E_SERVER_EXEC_FAILURE (0x80080005) after 30 seconds or so.

I've looked in task manager, and if the service is already started, another
copy of the process appears briefly and vanishes.

I've read lots of advice about using DCOMCNFG to configure the service but
nothing has seemed to work so far. I wasted most of the day yesterday
tinkering with settings and getting more and more frustrated. Surely this
was supposed to be easy, right?

Currently my service is set to log on using an Administrator account. When
I open DCOMCNFG I see two entries related to my service: ImageExtractor Class
(the interace of my ATL simple object) and ImageExtractorService (my service).

I've set both of them to run using the same Administrator account identity.

In terms of security settings, both ImageExtractor Class and
ImageExtractorService are configured identically:

Launch and Activation Permissions: Administrators have all permissions
Access Permissions: Administrators have all permissions
Configuration Permissions: Administrators have all permissions

I've checked and DCOM is enabled on my computer.
I've added the Administrator account I use to the "Distributed COM Users"
group

Under "My Computer" in DCOM:

Access Permissions -
Edit Limits: Distributed DCOM Users have all permissions

Launch and Activation Permissions -
Edit Limits: Distributed DCOM Users have all permissions

In case it makes any difference, I'm running Vista Ulitmate with SP1.

I'm tearing my hair out here. Could someone please tell me what I'm missing?

Thanks.

I'm guessing the Identity is not set correctly using DCOMCNFG. By default it is set to the Launching User. Change this to a specific
user account.


.



Relevant Pages

  • RE: DCOMCNFG nightmare with service
    ... Not the DCOMCNFG settings after all... ... ImageExtractorService.ImageExtractor.1 = s 'ImageExtractor Class' ... I've set both of them to run using the same Administrator account identity. ... Launch and Activation Permissions: Administrators have all permissions ...
    (microsoft.public.vc.atl)
  • Re: DCOMCNFG nightmare with service
    ... I open DCOMCNFG I see two entries related to my service: ImageExtractor Class ... I've set both of them to run using the same Administrator account identity. ... Launch and Activation Permissions: Administrators have all permissions ... Distributed DCOM Users have all permissions ...
    (microsoft.public.vc.atl)
  • Re: grant administrator account permissions
    ... administrator account full control permission to all mailboxes. ... In Exchange System Manager, locate the target database (Expand Servers, ... the Administrator account and grant this account Full Control permissions ... It may be necessary to wait up to 15 minutes for the permissions granted to ...
    (microsoft.public.windows.server.sbs)
  • Re: SP3 setup error
    ... Boot to Safe Mode and log in with the Administrator account. ... You need to edit the Permissions on ... Settings/All Users/Documents to "share this folder on the network", then retried the copy of beethov9.wma from the Software Update Installation Wizard - and the /Documents folder is now gone. ...
    (microsoft.public.windowsupdate)
  • Re: Problems with some programs now Ive adopted a non-administrative account
    ... well--users are prompted when more permissions are needed for an install. ... >> If you are a home user go ahead and use your administrator account. ... >> runas and administraor credentials while logged on as a regular user just ...
    (microsoft.public.security)