i am attempting to read the private queue MyQueue On DTW-TEMP-WEBSVR
from my machine
using the code
oQueue.Path = "FormatName:DIRECT=OS:DTW-TEMP-WEBSVR\Private$\MyQueue"
oQueue.Send("lll", "My Customer Dataset")
i get the error
The specified format name does not support the requested operation. For
example, a direct queue format name cannot be deleted.
when i use the path
oQueue.Path = ".\Private$\MyQueue"
it works ok
How do i send to a private queue on another machine?
Can you post the full working code and the error you got?
BTW: This is the code that worked for me... (In C#)
MessageQueue oQueue = new MessageQueue();
oQueue.Path = @"FormatName:DIRECT=OS:DTW-TEMP-WEBSVR\Private$\MyQueue";
oQueue.Send("lll", "My Customer Dataset");
Thanks a lot,
Yoel
www.msmq.biz
"Richard" <Ric...@discussions.microsoft.com> wrote in message
news:F011B38A-44C3-459A...@microsoft.com...
I think you mean 'write' not 'read' (since your sammple code does a send not
a receive).
> The specified format name does not support the requested operation. For
> example, a direct queue format name cannot be deleted.
Are you trying to do a send within a transaction?
this code gets the same result
I just use cut and paste to place those two lines of code into a VB.NET
program's button click handler and it worked as expected - the message was
sent to the appropriate outgoing queue.
Of course my system doesn't recognise the name DTW-TEMP-WEBSVR so the
message can never get delivered, but that's not important, the send
succeeded.
> this code gets the same result
Could you enclose the Send call in a try-catch block, write
exception.ToString () to the console and then post the whole exception
description here?