如何从远程公共服务器访问私人消息队列(MSMQ)? [英] How to access private message queue(MSMQ) from the remote public server?
本文介绍了如何从远程公共服务器访问私人消息队列(MSMQ)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我正在尝试访问远程服务器(公共服务器)上的消息队列.
我收到以下异常.
Hi all,
I am trying to access message queue which is on remote server (public server).
I am getting the following exception.
Message:
The specified format name does not support the requested operation. For example, a direct queue format name cannot be deleted.
Stack Trace:
at System.Messaging.MessageQueue.MQCacheableInfo.get_ReadHandle()
at System.Messaging.MessageQueue.StaleSafeReceiveMessage(UInt32 timeout, Int32 action, MQPROPS properties, NativeOverlapped* overlapped, ReceiveCallback receiveCallback, CursorHandle cursorHandle, IntPtr transaction)
at System.Messaging.MessageQueue.ReceiveCurrent(TimeSpan timeout, Int32 action, CursorHandle cursor, MessagePropertyFilter filter, MessageQueueTransaction internalTransaction, MessageQueueTransactionType transactionType)
at System.Messaging.MessageQueue.Receive()
at HTTPMSMQdemo.clsMSMQ.ReadMessage()
我正在使用以下格式来接收消息
"FormatName:DIRECT = HTTP://183.82.48.5/MSMQ/testwcf2";
"FormatName:Direct = TCP:183.82.48.5 \ testwcf2;
任何人都可以帮助我解决我的问题吗?
提前谢谢...
Rama Kumar Dakka
I am using the following format to receive message
"FormatName:DIRECT=HTTP://183.82.48.5/MSMQ/testwcf2";
"FormatName:Direct=TCP:183.82.48.5\testwcf2;
Can any one help me to resolve my problem??
Thanks in advance...
Rama Kumar Dakka
推荐答案
阅读以下内容:
http://www.infosysblogs.com/microsoft/2007/05/msmq_receiving_messages_from_r.html [ ^ ]
http://stackoverflow.com/questions/376208/connecting-to-a- private-remote-msmq-queue [ ^ ]
Read the following :
http://www.infosysblogs.com/microsoft/2007/05/msmq_receiving_messages_from_r.html[^]
http://stackoverflow.com/questions/376208/connecting-to-a-private-remote-msmq-queue[^]
这篇关于如何从远程公共服务器访问私人消息队列(MSMQ)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文