Configure the queue to allow access to the LocalSystem account or configure the service to run under another user account (using the services administration MMC).
Regards, Andrés G Vettori MCSE/MCSD/MCT Thawte Notary [EMAIL PROTECTED] Phone +54(11) 15-4914-2560 Obtené tu certificado digital totalmente gratis en http://www.thawte.com/getinfo/programs/wot/about.html -----Original Message----- From: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED]] On Behalf Of Greg Robinson Sent: Wednesday, July 31, 2002 3: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.