0

I am debugging though a wcf service. I have a service attached and debugging along with the exe. During the process, I get unsupported format name operation error when initializing queues with strings. However, I am pretty sure and double checked that the strings are of correct syntax, and I have all the permission and access to the queues.

RequestQueue = new System.Messaging.MessageQueue(correctString);

Any ideas are appreciated. Great thanks.

user2751691
  • 401
  • 2
  • 10
  • 32

1 Answers1

0

There are a couple of different formats that can be specified in the MessageQueue constructor, that use differing syntax, depending on if they are public/ private queues, dead-letter-queues, journal queues, and so on.

For example:

Public queue: MachineName\QueueName

Private queue: MachineName\Private$\QueueName

Can you post an example of what you are using?

Also, if you are using an Format Name, check the spelling of your format string:

FormatName:DIRECT=OS:YOURMACHINENAME\private$\YourQueueName

Please note that the first part FormatName:DIRECT is case-sensitive. (More in-depth documentation about the syntax can be found in the MSDN here: Direct Format Names)

Jens H
  • 4,590
  • 2
  • 25
  • 35