Create msmq queue with wcf configuration?

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
 
C

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
 
S

sloan

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top