473,748 Members | 7,608 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MSMQ workgroup and C#

My MSMQ is in workgroup installation.

I tried to add an event handler for the ReceiveComplete d event and to do
It I try to use the SetPermissions. but I get an error of

“A workgroup installation computer dose not support the operation”

The code is:

MessageQueue myQueue = new MessageQueue(". \\myQueue");
System.Messagin g.Trustee trustee = new Trustee(@".\\my Queue");
MessageQueueAcc essControlEntry ace = new
MessageQueueAcc essControlEntry (trustee,System .Messaging.Mess ageQueueAccessR ights.FullContr ol);

myQueue.SetPerm issions(ace); // Error here!!!

myQueue.Formatt er = new XmlMessageForma tter(new type[]{typeof(String) });

// Add an event handler for the ReceiveComplete d event.
myQueue.Receive Completed += new
ReceiveComplete dEventHandler(M yReceiveComplet ed); // Error here too!!!

// Begin the asynchronous receive operation.
myQueue.BeginRe ceive();

Does anyone know how to pass this problem?

Moti Saba
Nov 16 '05 #1
4 11828
Moti,

It could be that is an incorrect message. Do you have the rights to
change the access permissions on the queue? Also, what version of MSMQ are
you running (please don't say the one from option pack 4)?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"MSMQ workgroup and C#" <MSMQ workgroup and C#@discussions. microsoft.com>
wrote in message news:B3******** *************** ***********@mic rosoft.com...
My MSMQ is in workgroup installation.

I tried to add an event handler for the ReceiveComplete d event and to do
It I try to use the SetPermissions. but I get an error of

"A workgroup installation computer dose not support the operation"

The code is:

MessageQueue myQueue = new MessageQueue(". \\myQueue");
System.Messagin g.Trustee trustee = new Trustee(@".\\my Queue");
MessageQueueAcc essControlEntry ace = new
MessageQueueAcc essControlEntry (trustee,System .Messaging.Mess ageQueueAccessR ights.FullContr ol);

myQueue.SetPerm issions(ace); // Error here!!!

myQueue.Formatt er = new XmlMessageForma tter(new type[]{typeof(String) });

// Add an event handler for the ReceiveComplete d event.
myQueue.Receive Completed += new
ReceiveComplete dEventHandler(M yReceiveComplet ed); // Error here too!!!

// Begin the asynchronous receive operation.
myQueue.BeginRe ceive();

Does anyone know how to pass this problem?

Moti Saba

Nov 16 '05 #2
You have to use direct format names in workgroup mode when writing/reading
from public queues.
Something like this will do:

string mqPath = @"FormatName:DI RECT=OS:.\myQue ue";
myQueue = new MessageQueue();
myQueue .Path=mqPath;
....

Willy.

"MSMQ workgroup and C#" <MSMQ workgroup and C#@discussions. microsoft.com>
wrote in message news:B3******** *************** ***********@mic rosoft.com...
My MSMQ is in workgroup installation.

I tried to add an event handler for the ReceiveComplete d event and to do
It I try to use the SetPermissions. but I get an error of

"A workgroup installation computer dose not support the operation"

The code is:

MessageQueue myQueue = new MessageQueue(". \\myQueue");
System.Messagin g.Trustee trustee = new Trustee(@".\\my Queue");
MessageQueueAcc essControlEntry ace = new
MessageQueueAcc essControlEntry (trustee,System .Messaging.Mess ageQueueAccessR ights.FullContr ol);

myQueue.SetPerm issions(ace); // Error here!!!

myQueue.Formatt er = new XmlMessageForma tter(new type[]{typeof(String) });

// Add an event handler for the ReceiveComplete d event.
myQueue.Receive Completed += new
ReceiveComplete dEventHandler(M yReceiveComplet ed); // Error here too!!!

// Begin the asynchronous receive operation.
myQueue.BeginRe ceive();

Does anyone know how to pass this problem?

Moti Saba

Nov 16 '05 #3
Hi Willy

This was the problem!
You save me….

Thank you truly for your help.

Moti
"Willy Denoyette [MVP]" wrote:
You have to use direct format names in workgroup mode when writing/reading
from public queues.
Something like this will do:

string mqPath = @"FormatName:DI RECT=OS:.\myQue ue";
myQueue = new MessageQueue();
myQueue .Path=mqPath;
....

Willy.

"MSMQ workgroup and C#" <MSMQ workgroup and C#@discussions. microsoft.com>
wrote in message news:B3******** *************** ***********@mic rosoft.com...
My MSMQ is in workgroup installation.

I tried to add an event handler for the ReceiveComplete d event and to do
It I try to use the SetPermissions. but I get an error of

"A workgroup installation computer dose not support the operation"

The code is:

MessageQueue myQueue = new MessageQueue(". \\myQueue");
System.Messagin g.Trustee trustee = new Trustee(@".\\my Queue");
MessageQueueAcc essControlEntry ace = new
MessageQueueAcc essControlEntry (trustee,System .Messaging.Mess ageQueueAccessR ights.FullContr ol);

myQueue.SetPerm issions(ace); // Error here!!!

myQueue.Formatt er = new XmlMessageForma tter(new type[]{typeof(String) });

// Add an event handler for the ReceiveComplete d event.
myQueue.Receive Completed += new
ReceiveComplete dEventHandler(M yReceiveComplet ed); // Error here too!!!

// Begin the asynchronous receive operation.
myQueue.BeginRe ceive();

Does anyone know how to pass this problem?

Moti Saba


Nov 16 '05 #4
Hi Nicholas

I have the rights to change the access permissions on the queue and
I using win xp sp2.
This was my first idea.
I manage to operate the system. The problem was the direct format names
as Willy suggest.

Thank you for your help.

Moti
"Nicholas Paldino [.NET/C# MVP]" wrote:
Moti,

It could be that is an incorrect message. Do you have the rights to
change the access permissions on the queue? Also, what version of MSMQ are
you running (please don't say the one from option pack 4)?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"MSMQ workgroup and C#" <MSMQ workgroup and C#@discussions. microsoft.com>
wrote in message news:B3******** *************** ***********@mic rosoft.com...
My MSMQ is in workgroup installation.

I tried to add an event handler for the ReceiveComplete d event and to do
It I try to use the SetPermissions. but I get an error of

"A workgroup installation computer dose not support the operation"

The code is:

MessageQueue myQueue = new MessageQueue(". \\myQueue");
System.Messagin g.Trustee trustee = new Trustee(@".\\my Queue");
MessageQueueAcc essControlEntry ace = new
MessageQueueAcc essControlEntry (trustee,System .Messaging.Mess ageQueueAccessR ights.FullContr ol);

myQueue.SetPerm issions(ace); // Error here!!!

myQueue.Formatt er = new XmlMessageForma tter(new type[]{typeof(String) });

// Add an event handler for the ReceiveComplete d event.
myQueue.Receive Completed += new
ReceiveComplete dEventHandler(M yReceiveComplet ed); // Error here too!!!

// Begin the asynchronous receive operation.
myQueue.BeginRe ceive();

Does anyone know how to pass this problem?

Moti Saba


Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3718
by: Andrew Gordon | last post by:
I'm investigating getting Microsoft Navision to do stuff from a Python script. The recommended way seems to be to use message queues (MSMQ). I can get Navision to send a message to itself fine. I found a couple of code example in an ancient message in this newsgroup. The send.py one I changed to the following: from win32com.client import gencache msmq = gencache.EnsureModule('{D7D6E071-DCCD-11D0-AA4B-0060970DEBAE}', 0, 1, 0) qi =...
5
2827
by: Girish G | last post by:
I am trying to invoke a queued component and to my surprise the call succeeds locally but fails when the component resides on a separate box. Both the machines (client and server) in use have MSMQ installed in workgroup mode. I dont seem to get any exceptions or event messages. The outgoing queue on the client shows that messages were sent but no acknowledgements were received. Heres the client code
3
2514
by: Moti | last post by:
Hi all I need your help in MSMQ and C# I tried to add an event handler for the ReceiveCompleted event But then I get an error: “A workgroup installation computer dose not support the operation” My computer is in a domain but I can not add the “Active Directory
0
1130
by: Mike Z | last post by:
I have an ASP.Net app that needs to call an assembly that sends messages to a remote public MSMQ queue on a Windows Server 2003 machine. I can send messages to it successfully from several other machines, using both windows forms .Net apps and ASP.Net apps (all running Win2K). All machines have the same workgroup installation of MSMQ. It also works on this machine from a Windows Forms app just fine. I get a system exception: "Message...
5
11664
by: Alex Nitulescu | last post by:
Hi. I'm trying to make MSMQ work, so I go to Control Panel, Windows Components, I select MSMQ (Message Queuing Client Setup, actually) and about half-way through I get a nice message box saying The MSMQ service cannot be started. Error code: 0x42C The Dependency service or group failed to start. If I acknowledge, the "installation" continues as if nothing happened, but in the end nothing has been installed.
14
15875
by: Webbee | last post by:
I have a service built that is trying to read messages from a private que. When this tries to happen I get this error.... A workgroup installation computer does not support the operation From what I read I need to have my system setup on a domain, is this correct? For my dev work I'm not going to have that envirorment available and everything is tested on one laptop. Is there anything I can do? Thank you
5
6380
by: DBC User | last post by:
Hello, Is there an alternative approach to MSMQ for delivering messages? I am planning to develop an app which I don't want clients to install MSMQ (or do anything otherthan install my app). I was want to pass messages between two programs and my first approach was MSMQ and it worked perfectly and then I found out MSMQ is a seperate win component and is not installed by default. I am looking at writing files and implement...
3
6384
by: yonirabin | last post by:
Hello, I am building a system in C# 2.0 using the master - worker design pattern The system is supposed to work as follows: 1. The Master sends Command objects to several workers 2. All Commands are derived from AbstractCommand class (but are significantly different from each other) Since the system is distributed and should be presistant, I want to use
1
4777
by: Florence Tissot | last post by:
We are seeing some kind of resource leak in our performance lab running an ASP.NET (2.0) application that sends and receives messages from 2 public MSMQ queues. Here's a brief summary of what are application does: 1. user provides input on a form on an aspx page and clicks continues 2. on postback, the page creates a c# .net object and calls a method on it to process the data provided by the user 3. the object in turns creates an...
0
8828
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9243
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8241
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4599
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2213
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.