Check the permissions in the sercurity tab of the queue you're referring
to.

Skye

-----Original Message-----
From: Greg Robinson [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 31, 2002 7:02 PM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] MSMQTriggers


This works great from a windows application.  I am trying to make a
Windows Service.  All is well until the call to BeginReceive. This
service starts but then stops and errors at this line
(queuename.BeginReceive).

Event Type:    Error
Event Source:  Service1
Event Category:     None
Event ID: 0
Date:          7/30/2002
Time:          3:34:03 PM
User:          N/A
Computer: US20207014
Description:
Service cannot be started. System.Messaging.MessageQueueException:
Access to Message Queuing system is denied.
   at System.Messaging.MQCacheableInfo.get_ReadHandle()
   at System.Messaging.MessageQueue.ReceiveAsync(TimeSpan timeout, Int32
action, AsyncCallback callback, Object stateObject)
   at System.Messaging.MessageQueue.BeginReceive()
   at QueueListener.NewQueue.StartListening() in C:
\QueueListener\CAMSQueueListener.vb:line 108
   at QueueListener.Service1.OnStart(String[] args) in C:
\QueueListener\CAMSQueueListener.vb:line 70
   at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object
state)



Any suggestions on how to use this class within a windows service?

You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or subscribe to other DevelopMentor lists at
http://discuss.develop.com.

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to