You want to develop an application using MSMQ service, but whenever you send or receive message from MSMQ, you receive a Permission Denied exception. A possible reason is that you may have installed MSMQ in workgroup mode.
You can find the resolution for this problem here: http://support.microsoft.com/kb/247394/EN-US/
To use queued components in Workgroup mode, you must do two things:
- To allow for unsigned MSMQ messages, you must set the Authentication Level of the COM+ Application to None.
- To access the queued components from a remote computer, you must specify a queue: moniker that contains the complete FormatName of the destination queue.
To change the Authentication Level of the COM+ Application that hosts the queued components, perform the following steps:
- Under Administrative Tools, open the Component Services MMC snap-in.
- Expand My Computer and browse to the COM+ Application that hosts the queued components.
- To open the property sheet for the application, right-click the application and select Properties. Click the Security tab, and select None for Authentication level for calls.