Re: DCOMCNFG nightmare with service
- From: markiemooster <markiemooster@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 3 Oct 2008 03:11:01 -0700
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.
- References:
- DCOMCNFG nightmare with service
- From: markiemooster
- Re: DCOMCNFG nightmare with service
- From: Brian Muth
- DCOMCNFG nightmare with service
- Prev by Date: RE: out-of-proc activex and UAC
- Next by Date: Re: DCOMCNFG nightmare with service
- Previous by thread: Re: DCOMCNFG nightmare with service
- Next by thread: Re: DCOMCNFG nightmare with service
- Index(es):
Relevant Pages
|