Discussion:
MSMQ does not start through dependent windows service in Workgroup mode
(too old to reply)
indika
2009-02-17 15:37:07 UTC
Permalink
Hi Guys,

I have a windows service which depends on MSMQ Service. My windows
service is running under administrator account which is in workgroup
mode not in domain.
MSMQ is running under the "Local System" account. I have added the
dependency to my service for MSMQ. Now, both services are stopped.
When i try to start my windows service it will not getting start,
since MSMQ is not start even it has the dependency. If i start MSMQ
manually, then i can start my service without issue. So my problem is
MSMQ does not start through the my windows service.

But this is working fine when i test this in domain machine with
domain user for my windows service.
Can anyone help?

Indika..
John Breakwell (MSFT)
2009-02-18 16:25:35 UTC
Permalink
Hi

This sounds like a permissions problem accessing Services Control Manager
(SCM) - I'd be surprised if it were MSMQ-specific.

A few questions.

1 Does this apply ONLY to MSMQ? Can you set your service to depend on
another service that isn't running (while MSMQ is running) and try to start
your service?
2 Anything in the system event log? Should be something logged by the
SCM.
3 What happens if you set your service to run under Local Admin on the
working machine? Does it still work?

Make sure you reboot when you make changes to the registry when testing as
SCM won't take anynnotice if you don't (as I found to my cost today...)

Cheers
John Breakwell
Post by indika
Hi Guys,
I have a windows service which depends on MSMQ Service. My windows
service is running under administrator account which is in workgroup
mode not in domain.
MSMQ is running under the "Local System" account. I have added the
dependency to my service for MSMQ. Now, both services are stopped.
When i try to start my windows service it will not getting start,
since MSMQ is not start even it has the dependency. If i start MSMQ
manually, then i can start my service without issue. So my problem is
MSMQ does not start through the my windows service.
But this is working fine when i test this in domain machine with
domain user for my windows service.
Can anyone help?
Indika..
f***@gmail.com
2009-03-12 06:31:54 UTC
Permalink
Post by John Breakwell (MSFT)
Hi
This sounds like a permissions problem accessing Services Control Manager
(SCM) - I'd be surprised if it were MSMQ-specific.
A few questions.
1 Does this apply ONLY to MSMQ? Can you set your service to depend on
another service that isn't running (while MSMQ is running) and try to start
your service?
2 Anything in the system event log? Should be something logged by the
SCM.
3 What happens if you set your service to run under Local Admin on the
working machine? Does it still work?
Make sure you reboot when you make changes to the registry when testing as
SCM won't take anynnotice if you don't (as I found to my cost today...)
Cheers
John Breakwell
Post by indika
Hi Guys,
I have a windows service which depends on MSMQ Service. My windows
service is running under administrator account which is in workgroup
mode not in domain.
MSMQ is running under the "Local System" account. I have added the
dependency to my service for MSMQ. Now, both services are stopped.
When i try to start my windows service it will not getting start,
since MSMQ is not start even it has the dependency. If i start MSMQ
manually, then i can start my service without issue. So my problem is
MSMQ does not start through the my windows service.
But this is working fine when i test this in domain machine with
domain user for my windows service.
Can anyone help?
Indika..
Hi john

i am also in indika's team, as you mention on the above comment, i
tried with other services other than msmq but still the same issue is
there.
one more thing i wanted to add, that in any case if we restart the
machine it works fine even if it is on admin account or localsystem
account

our question is does the registry value change of service dependency
will respond without rebooting the computer?.

is there any ways to make this respond without rebooting ?

appreciate your helps

cheers
malik

Loading...