A service can't run MessageQueueing....

U

UJ

I have a program that works just fine as a windows program. I took an object
from it and put it in a service. This object uses MessageQueueing. When I
try and start up the app I get the following error message in the event log:

Service cannot be started. System.Messaging.MessageQueueException:
Access to Message Queuing system is denied.

I'm using the local system account for the account.

What do I need to do in order to make this work?

TIA - Jeff.
 
G

Guest

It's because service incorporated in NETWORK SERVICE user.
Grand righst to MQ for this user

UJ said:
I have a program that works just fine as a windows program. I took an object
from it and put it in a service. This object uses MessageQueueing. When I
try and start up the app I get the following error message in the event log:

Service cannot be started. System.Messaging.MessageQueueException:
Access to Message Queuing system is denied.

I'm using the local system account for the account.

What do I need to do in order to make this work?

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
G

Guest

Try to open Computer Management->MSMQ and grands rights for this user

UJ said:
I don't see user through the user's display. Where would I find it?

J.

--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
 
U

UJ

When I try and change the properties and go to the security section, it says
"The security descriptor cannot be obtained. Error: This operation is not
supported for Message Queuing installed in workgroup mode."

J.
 
W

Willy Denoyette [MVP]

You need to change the security properties of the queue itself (private
queue), not the security settings of the MSMQ service.

Willy.

| When I try and change the properties and go to the security section, it
says
| "The security descriptor cannot be obtained. Error: This operation is not
| supported for Message Queuing installed in workgroup mode."
|
| J.
|
| message | > Try to open Computer Management->MSMQ and grands rights for this user
| >
| > "UJ" wrote:
| >> I don't see user through the user's display. Where would I find it?
| >>
| >> J.
| >>
| >> message | >> > It's because service incorporated in NETWORK SERVICE user.
| >> > Grand righst to MQ for this user
| >> >
| >> > "UJ" wrote:
| >> >
| >> >> I have a program that works just fine as a windows program. I took
an
| >> >> object
| >> >> from it and put it in a service. This object uses MessageQueueing.
| >> >> When I
| >> >> try and start up the app I get the following error message in the
| >> >> event
| >> >> log:
| >> >>
| >> >> Service cannot be started.
System.Messaging.MessageQueueException:
| >> >> Access to Message Queuing system is denied.
| >> >>
| >> >> I'm using the local system account for the account.
| >> >>
| >> >> What do I need to do in order to make this work?
| >> >
| >> > --
| >> > WBR,
| >> > Michael Nemtsev :: blog: http://spaces.msn.com/laflour
| >> >
| >> > "At times one remains faithful to a cause only because its opponents
do
| >> > not
| >> > cease to be insipid." (c) Friedrich Nietzsche
| >
| > --
| > WBR,
| > Michael Nemtsev :: blog: http://spaces.msn.com/laflour
| >
| > "At times one remains faithful to a cause only because its opponents do
| > not
| > cease to be insipid." (c) Friedrich Nietzsche
| >
|
|
 
U

UJ

I can't seem to add the local system account (I need to use the local system
account because it needs to be able to interact with the desktop.). When I
try either 'Local System' or 'LocalSystem' (with or without the spaces) it
says the account isn't there.

J.
 
W

Willy Denoyette [MVP]

You need to enter SYSTEM or select SYSTEM from the list in advanced mode.
Note also that a service should NOT interact with the desktop, this option
is there for debugging purposes anno 1995, "Vista" services can no longer
interact with the desktop at all.

Willy.

|I can't seem to add the local system account (I need to use the local
system
| account because it needs to be able to interact with the desktop.). When I
| try either 'Local System' or 'LocalSystem' (with or without the spaces) it
| says the account isn't there.
|
| J.
|
| | > UJ,
| > With MSMQ installed in Workgroup mode, you should be able to right-click
| > on
| > either the "Message Queueing" node, or on a specific private Queue, and
be
| > able to navigate to the Security tab and manipulate accounts.
| >
| > Peter
| > --
| > Co-founder, Eggheadcafe.com developer portal:
| > http://www.eggheadcafe.com
| > UnBlog:
| > http://petesbloggerama.blogspot.com
| >
| >
| >
| >
| > "UJ" wrote:
| >
| >> When I try and change the properties and go to the security section, it
| >> says
| >> "The security descriptor cannot be obtained. Error: This operation is
not
| >> supported for Message Queuing installed in workgroup mode."
| >>
| >> J.
| >>
| >> message | >> > Try to open Computer Management->MSMQ and grands rights for this user
| >> >
| >> > "UJ" wrote:
| >> >> I don't see user through the user's display. Where would I find it?
| >> >>
| >> >> J.
| >> >>
in
| >> >> message | >> >> > It's because service incorporated in NETWORK SERVICE user.
| >> >> > Grand righst to MQ for this user
| >> >> >
| >> >> > "UJ" wrote:
| >> >> >
| >> >> >> I have a program that works just fine as a windows program. I
took
| >> >> >> an
| >> >> >> object
| >> >> >> from it and put it in a service. This object uses
MessageQueueing.
| >> >> >> When I
| >> >> >> try and start up the app I get the following error message in the
| >> >> >> event
| >> >> >> log:
| >> >> >>
| >> >> >> Service cannot be started.
| >> >> >> System.Messaging.MessageQueueException:
| >> >> >> Access to Message Queuing system is denied.
| >> >> >>
| >> >> >> I'm using the local system account for the account.
| >> >> >>
| >> >> >> What do I need to do in order to make this work?
| >> >> >
| >> >> > --
| >> >> > WBR,
| >> >> > Michael Nemtsev :: blog: http://spaces.msn.com/laflour
| >> >> >
| >> >> > "At times one remains faithful to a cause only because its
opponents
| >> >> > do
| >> >> > not
| >> >> > cease to be insipid." (c) Friedrich Nietzsche
| >> >
| >> > --
| >> > WBR,
| >> > Michael Nemtsev :: blog: http://spaces.msn.com/laflour
| >> >
| >> > "At times one remains faithful to a cause only because its opponents
do
| >> > not
| >> > cease to be insipid." (c) Friedrich Nietzsche
| >> >
| >>
| >>
| >>
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top