MSMQ Error: Execption in method OpenReceiveQueue
sre
Member Posts: 62
Hi all,
I know that the topic has been covered several times and I've used the search function already and got a lot of useful information. In addition to that I've checked the devguide.chm (just wanted to let you know so no one tells me to check that first). \:D/
Nevertheless I've not even been able to run a fairly simple example. It's basically like the example in devguide.chm to receive a document. The code is placed in the OnRun-Trigger of a single instance codeunit (just for testing) and looks like that:
The code example is so simple that I don't know what to modify. The "CreateQueue" command seems not to be required according to the documentation (and doesn't work either). I've adapted the machine name as well and tried to assign permissions (private$ etc.) as well but the message doesn't change.
So I'm awaiting you're replies to #-o
Thanks in advance ...
Cheers
Sascha
I know that the topic has been covered several times and I've used the search function already and got a lot of useful information. In addition to that I've checked the devguide.chm (just wanted to let you know so no one tells me to check that first). \:D/
Nevertheless I've not even been able to run a fairly simple example. It's basically like the example in devguide.chm to receive a document. The code is placed in the OnRun-Trigger of a single instance codeunit (just for testing) and looks like that:
IF ISCLEAR(MQBus) THEN
CREATE(MQBus);
IF ISCLEAR(CC2) THEN
CREATE(CC2);
CC2.AddBusAdapter(MQBus,1);
MQBus.OpenReceiveQueue('.\toNAS',0,0);
When I run the codeunit, the following message appears: "This message is for C/AL programmers: An execption was raised in method OpenReceiveQueue. The OLE control or Automation Server has returned error (HRESULT) -2147352567. The component did not provide the exeception description". The example has been run on Navision 4.0 SP3 and Windows Vista Business.The code example is so simple that I don't know what to modify. The "CreateQueue" command seems not to be required according to the documentation (and doesn't work either). I've adapted the machine name as well and tried to assign permissions (private$ etc.) as well but the message doesn't change.
So I'm awaiting you're replies to #-o
Thanks in advance ...
Cheers
Sascha
0
Answers
-
Hi Sascha,
1. Right click on Queue > Go to Properties > Copy the MSMQ Path from the properties screen as shown in attached file
2. Go to Security tab and give Full Control permission to everyone
Regards,
Mukesh0 -
Hi Mukesh,Mukesh Verma wrote:1. Right click on Queue > Go to Properties > Copy the MSMQ Path from the properties screen as shown in attached file
there's no screen attached? Can you tell me where I can find it and where I have to click on the queue?
Thanks
Sascha0 -
Thanks to google I found the answer to my request IN THIS FORUM: :oops:
viewtopic.php?f=23&t=8634&view=next
No idea why I didn't find it the last time I had been looking for it here. ](*,)0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 250 Dynamics CRM
- 102 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions