473,545 Members | 2,543 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using MSMQ on a workgroup?

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

Nov 21 '05 #1
14 15857

"Webbee" <We****@discuss ions.microsoft. com> wrote in message
news:D4******** *************** ***********@mic rosoft.com...
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


You do not need to enlist your MSMQ in a domain. You can read and write to
local and remote private queues with workgroup instals of MSMQ.

What OS are you using?
You need to use windows 2000, XP or 2003 server.

What MSMQ library?
You should be using the managed System.Messagin g namespace.

How are you accessing your queues?
Access to remote private queues requires using a queue FormatName instead of
a PathName.

EG:
FormatName:dire ct=os:somehost\ private$\somequ eue

David
Nov 21 '05 #2


"David Browne" wrote:

"Webbee" <We****@discuss ions.microsoft. com> wrote in message
news:D4******** *************** ***********@mic rosoft.com...
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


You do not need to enlist your MSMQ in a domain. You can read and write to
local and remote private queues with workgroup instals of MSMQ.

What OS are you using?
You need to use windows 2000, XP or 2003 server.

What MSMQ library?
You should be using the managed System.Messagin g namespace.

How are you accessing your queues?
Access to remote private queues requires using a queue FormatName instead of
a PathName.

EG:
FormatName:dire ct=os:somehost\ private$\somequ eue

David


I'm using XP and the System.Messagin g namespace. The thing is I wrote 2
testing apps to learn on and they work fine. One will send messages in and
one will read them back to me. Now once I put this same code into a service
it stopped working? Here is the code...

Try
Dim doc As XmlDocument
doc = New XmlDocument

Dim element As XmlElement

Dim queue As MessageQueue
queue = New MessageQueue

Dim mess As Message
mess = New Message

queue.Path = (".\" & MSMQ)
queue.Formatter = New XmlMessageForma tter(New String()
{"System.String "})

For Each mess In queue
queue.Peek()
doc.LoadXml(CTy pe(mess.Body, String))
element = doc.DocumentEle ment
LogEntry(elemen t.SelectSingleN ode("/GMImport/NewContact/RecID").InnerTe xt,
EventLogEntryTy pe.Information, enLogMode.Mediu m_Importance)
Next

Catch ex As Exception
LogEntry(ex.Mes sage, EventLogEntryTy pe.Error,
enLogMode.High_ Importance)
End Try
Nov 21 '05 #3


"Webbee" wrote:


"David Browne" wrote:

"Webbee" <We****@discuss ions.microsoft. com> wrote in message
news:D4******** *************** ***********@mic rosoft.com...
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


You do not need to enlist your MSMQ in a domain. You can read and write to
local and remote private queues with workgroup instals of MSMQ.

What OS are you using?
You need to use windows 2000, XP or 2003 server.

What MSMQ library?
You should be using the managed System.Messagin g namespace.

How are you accessing your queues?
Access to remote private queues requires using a queue FormatName instead of
a PathName.

EG:
FormatName:dire ct=os:somehost\ private$\somequ eue

David


I'm using XP and the System.Messagin g namespace. The thing is I wrote 2
testing apps to learn on and they work fine. One will send messages in and
one will read them back to me. Now once I put this same code into a service
it stopped working? Here is the code...

Try
Dim doc As XmlDocument
doc = New XmlDocument

Dim element As XmlElement

Dim queue As MessageQueue
queue = New MessageQueue

Dim mess As Message
mess = New Message

queue.Path = (".\" & MSMQ)
queue.Formatter = New XmlMessageForma tter(New String()
{"System.String "})

For Each mess In queue
queue.Peek()
doc.LoadXml(CTy pe(mess.Body, String))
element = doc.DocumentEle ment
LogEntry(elemen t.SelectSingleN ode("/GMImport/NewContact/RecID").InnerTe xt,
EventLogEntryTy pe.Information, enLogMode.Mediu m_Importance)
Next

Catch ex As Exception
LogEntry(ex.Mes sage, EventLogEntryTy pe.Error,
enLogMode.High_ Importance)
End Try


Also from what I have read I don't think I can use private format names when
in workgroup mode.
Nov 21 '05 #4

"Webbee" <We****@discuss ions.microsoft. com> wrote in message
news:C9******** *************** ***********@mic rosoft.com...


"Webbee" wrote:


"David Browne" wrote:
>
> "Webbee" <We****@discuss ions.microsoft. com> wrote in message
> news:D4******** *************** ***********@mic rosoft.com...
> >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
> >
>
> You do not need to enlist your MSMQ in a domain. You can read and
> write to
> local and remote private queues with workgroup instals of MSMQ.
>
> What OS are you using?
> You need to use windows 2000, XP or 2003 server.
>
> What MSMQ library?
> You should be using the managed System.Messagin g namespace.
>
> How are you accessing your queues?
> Access to remote private queues requires using a queue FormatName
> instead of
> a PathName.
>
> EG:
> FormatName:dire ct=os:somehost\ private$\somequ eue
>
> David
>
>
>


I'm using XP and the System.Messagin g namespace. The thing is I wrote 2
testing apps to learn on and they work fine. One will send messages in
and
one will read them back to me. Now once I put this same code into a
service
it stopped working? Here is the code...

Try
Dim doc As XmlDocument
doc = New XmlDocument

Dim element As XmlElement

Dim queue As MessageQueue
queue = New MessageQueue

Dim mess As Message
mess = New Message

queue.Path = (".\" & MSMQ)
queue.Formatter = New XmlMessageForma tter(New String()
{"System.String "})

For Each mess In queue
queue.Peek()
doc.LoadXml(CTy pe(mess.Body, String))
element = doc.DocumentEle ment
LogEntry(elemen t.SelectSingleN ode("/GMImport/NewContact/RecID").InnerTe xt,
EventLogEntryTy pe.Information, enLogMode.Mediu m_Importance)
Next

Catch ex As Exception
LogEntry(ex.Mes sage, EventLogEntryTy pe.Error,
enLogMode.High_ Importance)
End Try


Also from what I have read I don't think I can use private format names
when
in workgroup mode.


No. In workgroup mode you MUST use format names to access remote private
queues. Also Queues have owners and ACL's just like files and folders.
Check the queue's permissions using Computer Management. Change the queue's
owner to the .\Administrator s group, and make sure your service is running
under an account with the appropriate privileges.

David
Nov 21 '05 #5


"Webbee" wrote:


"David Browne" wrote:

"Webbee" <We****@discuss ions.microsoft. com> wrote in message
news:D4******** *************** ***********@mic rosoft.com...
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


You do not need to enlist your MSMQ in a domain. You can read and write to
local and remote private queues with workgroup instals of MSMQ.

What OS are you using?
You need to use windows 2000, XP or 2003 server.

What MSMQ library?
You should be using the managed System.Messagin g namespace.

How are you accessing your queues?
Access to remote private queues requires using a queue FormatName instead of
a PathName.

EG:
FormatName:dire ct=os:somehost\ private$\somequ eue

David


I'm using XP and the System.Messagin g namespace. The thing is I wrote 2
testing apps to learn on and they work fine. One will send messages in and
one will read them back to me. Now once I put this same code into a service
it stopped working? Here is the code...

Try
Dim doc As XmlDocument
doc = New XmlDocument

Dim element As XmlElement

Dim queue As MessageQueue
queue = New MessageQueue

Dim mess As Message
mess = New Message

queue.Path = (".\" & MSMQ)
queue.Formatter = New XmlMessageForma tter(New String()
{"System.String "})

For Each mess In queue
queue.Peek()
doc.LoadXml(CTy pe(mess.Body, String))
element = doc.DocumentEle ment
LogEntry(elemen t.SelectSingleN ode("/GMImport/NewContact/RecID").InnerTe xt,
EventLogEntryTy pe.Information, enLogMode.Mediu m_Importance)
Next

Catch ex As Exception
LogEntry(ex.Mes sage, EventLogEntryTy pe.Error,
enLogMode.High_ Importance)
End Try


Also from what I have read I don't think I can use private format names when
in workgroup mode.
Nov 21 '05 #6

"Webbee" <We****@discuss ions.microsoft. com> wrote in message
news:C9******** *************** ***********@mic rosoft.com...


"Webbee" wrote:


"David Browne" wrote:
>
> "Webbee" <We****@discuss ions.microsoft. com> wrote in message
> news:D4******** *************** ***********@mic rosoft.com...
> >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
> >
>
> You do not need to enlist your MSMQ in a domain. You can read and
> write to
> local and remote private queues with workgroup instals of MSMQ.
>
> What OS are you using?
> You need to use windows 2000, XP or 2003 server.
>
> What MSMQ library?
> You should be using the managed System.Messagin g namespace.
>
> How are you accessing your queues?
> Access to remote private queues requires using a queue FormatName
> instead of
> a PathName.
>
> EG:
> FormatName:dire ct=os:somehost\ private$\somequ eue
>
> David
>
>
>


I'm using XP and the System.Messagin g namespace. The thing is I wrote 2
testing apps to learn on and they work fine. One will send messages in
and
one will read them back to me. Now once I put this same code into a
service
it stopped working? Here is the code...

Try
Dim doc As XmlDocument
doc = New XmlDocument

Dim element As XmlElement

Dim queue As MessageQueue
queue = New MessageQueue

Dim mess As Message
mess = New Message

queue.Path = (".\" & MSMQ)
queue.Formatter = New XmlMessageForma tter(New String()
{"System.String "})

For Each mess In queue
queue.Peek()
doc.LoadXml(CTy pe(mess.Body, String))
element = doc.DocumentEle ment
LogEntry(elemen t.SelectSingleN ode("/GMImport/NewContact/RecID").InnerTe xt,
EventLogEntryTy pe.Information, enLogMode.Mediu m_Importance)
Next

Catch ex As Exception
LogEntry(ex.Mes sage, EventLogEntryTy pe.Error,
enLogMode.High_ Importance)
End Try


Also from what I have read I don't think I can use private format names
when
in workgroup mode.


No. In workgroup mode you MUST use format names to access remote private
queues. Also Queues have owners and ACL's just like files and folders.
Check the queue's permissions using Computer Management. Change the queue's
owner to the .\Administrator s group, and make sure your service is running
under an account with the appropriate privileges.

David
Nov 21 '05 #7
No luck. First, when I create a que in workgroup mode I do not get a GUID for
it. The GUID is all 0's. But not only that I can not even create a new que in
workgroup mode via a service. All these things work just fine on the same
machine running from a standard windows app but once I ask the service to do
the same thing I get jammed. I created a user called MSMQ and added the
Administrators group to it. Then set the user as the one my service will use
to log in. Still no luck. I just can't understand why running in workgroup
mode would make this not work?
Nov 21 '05 #8

"Webbee" <We****@discuss ions.microsoft. com> wrote in message
news:62******** *************** ***********@mic rosoft.com...
No luck. First, when I create a que in workgroup mode I do not get a GUID
for
it. The GUID is all 0's. But not only that I can not even create a new que
in
workgroup mode via a service. All these things work just fine on the same
machine running from a standard windows app but once I ask the service to
do
the same thing I get jammed. I created a user called MSMQ and added the
Administrators group to it. Then set the user as the one my service will
use
to log in. Still no luck. I just can't understand why running in workgroup
mode would make this not work?


Hold on. The _only_ difference between running in a console app and running
as a service is permissions. If it works for you in a desktop app, then
configure the service to run as _you_ and test. Once that's working, you
can start to isolate the permissions and memberships required for the
service account.

David
Nov 21 '05 #9
No luck. First, when I create a que in workgroup mode I do not get a GUID for
it. The GUID is all 0's. But not only that I can not even create a new que in
workgroup mode via a service. All these things work just fine on the same
machine running from a standard windows app but once I ask the service to do
the same thing I get jammed. I created a user called MSMQ and added the
Administrators group to it. Then set the user as the one my service will use
to log in. Still no luck. I just can't understand why running in workgroup
mode would make this not work?
Nov 21 '05 #10

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

Similar topics

0
3676
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...
1
2520
by: raydelex | last post by:
I am new to securing a database with logins. My questions is: I want only one database to use a new Workgroup file that I have created, not all the Access databases that I bring up under my system login. Can this be done? Thanks
5
2820
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...
3
2505
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
4
11822
by: MSMQ workgroup and C# | last post by:
My MSMQ is in workgroup installation. I tried to add an event handler for the ReceiveCompleted 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");
2
3479
by: Ash | last post by:
Hi, I'm working on an application that takes csv files then converts it to XML. It then write the XML to a msmq where another service is reading the queue and sends it to the DB. My question is: My application flies (when using the Message object to wrap my data in a non-transactional Q. When using MessageQueueTransaction in a...
11
3560
by: Jon Davis | last post by:
Can a solution built in C# utilize MSMQ and/or MTS? If so, does this make the training material I already have on MSMQ and MTS in the context of VB6 an appropriate prerequisite foundation before learning how to build C# solutions on MSMQ / MTS, if I already know VB6 as well as C#? Jon
1
4755
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...
1
11382
by: lmod | last post by:
I am developing an application using WPF and WCF. This app on the server side will need for WCF services hosted in IIS6 to communicate with WCF services that are hosted as Windows services on the same server / or network. Also the WCF services hosted in IIS6 has to communicate with the WPF client apps that will be installed on computers that...
0
7396
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...
0
7656
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7751
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...
0
5968
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...
1
5323
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4943
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...
0
3449
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...
0
3440
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1874
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.