如何连接到虚拟机上的消息队列 [英] How do I connect to a message queue on a virtual machine

查看:158
本文介绍了如何连接到虚拟机上的消息队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



有谁知道如何访问虚拟机上的私人队列?

我正在使用c#。 Net 4.我尝试使用MyQueue = new MessageQueue(@MachineName\Private $ \\\ nuuename);并使用了MachineName的ip地址以便连接但是我收到一条错误,说无效的队列路径名

可能是因为机器需要用户名和密码?如果是这样我怎么能把它传递给机器?



任何帮助都表示赞赏。

最好,

Mariann

Hi everyone,

Does anybody know how can I access a private queue on a virtual machine?
I am using c# .Net 4. I tried using MyQueue= new MessageQueue(@"MachineName\Private$\queuename); and used the ip address for the MachineName in order to connect but I get an error saying "invalid queue path name"
Could that be because the machine needs a username and password? If so how can I pass it to the machine?

Any help is appreciated.
Best,
Mariann

推荐答案

\ esuename);并按顺序使用了MachineName的ip地址连接,但我得到一个错误,说无效的队列路径名称

可能是因为机器需要用户名和密码?如果是这样,我怎么能把它传递给机器?



感谢任何帮助。

Best,

Mariann
\queuename); and used the ip address for the MachineName in order to connect but I get an error saying "invalid queue path name"
Could that be because the machine needs a username and password? If so how can I pass it to the machine?

Any help is appreciated.
Best,
Mariann


这篇关于如何连接到虚拟机上的消息队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆