Create msmq queue with wcf configuration?

  • Thread starter Thread starter Carl
  • Start date Start date
C

Carl

Hi,

Is it possible to configure wcf to automatically create the msmq queue, when
using declarative configuration?

When I start my app, if the queue does not exist the application exits. This
happens even before any own code is executed, so it does not help that I
have

if (!MessageQueue.Exists(queueName))
MessageQueue.Create(queueName, true);

That code is never reached.

regards

Carl
 
Please disregard from my previous message. I did have an old host.Open()
statement that I forgot about, that caused the problem.

regards

Carl
 
Be careful with this method. Queue's usually need specific permissions.
If you're an "admin" on your machine, then deploy this code .... you'll
probably run into security issues when you deploy.


To go "Manage Computer", find the Queue and look at the Security Tab.

The best tip I can give you is to actually put your queue on a remote
machine.
You'll learn what you can and can't do and what permissions you need much
more clearly then having a local queue.
 
Back
Top