From: shikha meena on 23 Feb 2007 06:26 Hi, I have written the following code to send message using MSMQ from the device to PC. Private Sub SendMessageToQueue(ByVal Path As String) ' Create a new order and set values. myQ = New MessageQueue(Path) Dim sendOrder As New MSG ID += 1 Label4.Text = ID sendOrder.orderID = Label4.Text Label5.Text = DateTime.Now sendOrder.orderTime = Label5.Text sendOrder.orderBody = TextBox1.Text Try myQ.Send(sendOrder) myQ.Close() MsgBox("Message Sent") Catch ex As Exception MsgBox("SendMessage: " & ex.Message) End Try End Sub On the line "myQ.Send(sendOrder)" following exception is thrown "The queue does not exist or you do not have sufficient permissions to perform the operation" at MQCacheableInfo.get_WriteHandle() at System.Messaging.MessageQueue.StaleSafeSendMessage() at System.Messaging.MessageQueue.SendInternal() at System.Messaging.MessageQueue.Send() at MSMQcf.Form1.SendMessageToQueue() at MSMQcf.Form1.Button3_Click() Any suggestion to resolve this problem will be a great help. Thanks Shikha
From: joker on 23 Feb 2007 07:12 Have you installed (the cab), then registered and started MSMQ on the device? Also, you'll need to create the queue. MessageQueue.Create(QUEUE_NAME); //I'm not sure of the VB equivalent. If MSMQ is installed, check the log file, normally in \temp\msmq, on the device for any errors occurring there. Good luck and let us know what the issue was.
From: shikha meena on 23 Feb 2007 07:35 On Feb 23, 12:12 pm, "joker" <j...(a)wizebid.com> wrote: > Have you installed (the cab), then registered and started MSMQ on the > device? > > Also, you'll need to create the queue. > > MessageQueue.Create(QUEUE_NAME); //I'm not sure of the VB equivalent. > > If MSMQ is installed, check the log file, normally in \temp\msmq, on > the device for any errors occurring there. > > Good luck and let us know what the issue was. Hi , I have installed (the cab), then registered and started MSMQ on the device. I tried creating a queue ..but in case of remote messaging i guess a queue cannot be created.. therefore i am getting a error when i try creating a queue Can u suggest anything ... Thanks for the help... Shikha
From: joker on 23 Feb 2007 08:38 Any hints in the log file? Also, the queue must be created on the Desktop machine, although I don't believe this would prevent you from sending the message, just prevent the message from being delivered. What is the device you are sending from? PPC, Windows Mobile? or CE? I know when I was using the emulator, I had to do a soft reset after installing msmq in order for it to start. Can you verify that MSMQ is indeed running? (use the msmqadm.exe tool or visadm.exe gui tool)
From: shikha meena on 23 Feb 2007 10:30 Hi, I am working on the Pocket PC ... I had a look at the log file msmqadmio.txt - which had following txt - Windows CE 5.01 (Build 422, 3) - MSMQ 4.2002 (Build 0), MSMQ_CE DISCONNECTED I also tried visadm.exe gui tool on the PPC .. Through the shortcuts in the visadm.exe i clicked on the start and then looked at the status which is showing the same line Windows CE 5.01 (Build 422, 3) - MSMQ 4.2002 (Build 0), MSMQ_CE DISCONNECTED Could you please guide how can i resolve this.... Thanks... Shikha
|
Next
|
Last
Pages: 1 2 Prev: simple question about backlight Next: scanning on multiple forms using Symbol SMDK |