System.Messaging.MessageQueueException: Queue with the specified path name
is already registered in the DS.
The GetPublicQueuesByMachine method does't find this queue and gives the
Unhandled Execution Error and MessageQueueException with message text as
NULL.
But GetPrivateQueuesByMachine method works fine and retrieves all private
queues. Another thing is, if the same code is run in a Windows Application,
it works fine and retrieves the public queue.
So why does it not find the PUBLIC queue in a WEB application?
and if i switched the code to manage PRIVATE Queue no problems found....!!
here is my code. Please help.
if (!MessageQueue.Exists(".\\requestq")) //???
{
MessageQueue requestq = MessageQueue.Create(".\\requestq");
}
MessageQueue[] mqlist = null;
try
{
mqlist = MessageQueue.GetPublicQueuesByMachine("."); //???
}
catch (MessageQueueException ex)
{
string mesg = ex.Message;
}
--
Sakhrawy
"Mohammad Abd Elrahman" <mb...@live.com> wrote in message
news:D05A5886-6998-43F7...@microsoft.com...