MSMQ.MSMQQueueInfo PathName Not Accepted

Posted by user357596 on Stack Overflow See other posts from Stack Overflow or by user357596
Published on 2010-06-03T14:59:53Z Indexed on 2010/06/03 18:44 UTC
Read the original article Hit count: 353

Filed under:
|

I am using MSMQ.MSMQQueueInfo with jscript on Windows 7 (the latest MSMQ version). This is being run on a domain joined computer. For some reason unknown to me, it just will not accept the PathName I give it (which is in an acceptable format). Here is the code:

var qi = new ActiveXObject ("MSMQ.MSMQQueueInfo");
qi.PathName = "FormatName:Direct=OS:mycomputer\\Private$\\myqueue";

I know this PathName works, because I use the exact same path in c#, and that works:

queue = new MessageQueue("FormatName:DIRECT=OS:" + contollerName + "\\Private$\\" + queueName);

When the code "qi.Open()" in the jscript code attempts to execute, it returns this error message: The queue path name specified is invalid.

Has anyone else run into this? Ideas? Comments? Suggestions? Thank you in advance!

© Stack Overflow or respective owner

Related posts about msmq

Related posts about jscript