Permission denied when using MSMQ

8 Apr

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:

  1. Under Administrative Tools, open the Component Services MMC snap-in.
  2. Expand My Computer and browse to the COM+ Application that hosts the queued components.
  3. 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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: