473,288 Members | 1,794 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,288 software developers and data experts.

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 15831

"Webbee" <We****@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.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.Messaging namespace.

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

EG:
FormatName:direct=os:somehost\private$\somequeue

David
Nov 21 '05 #2


"David Browne" wrote:

"Webbee" <We****@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.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.Messaging namespace.

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

EG:
FormatName:direct=os:somehost\private$\somequeue

David


I'm using XP and the System.Messaging 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 XmlMessageFormatter(New String()
{"System.String"})

For Each mess In queue
queue.Peek()
doc.LoadXml(CType(mess.Body, String))
element = doc.DocumentElement
LogEntry(element.SelectSingleNode("/GMImport/NewContact/RecID").InnerText,
EventLogEntryType.Information, enLogMode.Medium_Importance)
Next

Catch ex As Exception
LogEntry(ex.Message, EventLogEntryType.Error,
enLogMode.High_Importance)
End Try
Nov 21 '05 #3


"Webbee" wrote:


"David Browne" wrote:

"Webbee" <We****@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.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.Messaging namespace.

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

EG:
FormatName:direct=os:somehost\private$\somequeue

David


I'm using XP and the System.Messaging 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 XmlMessageFormatter(New String()
{"System.String"})

For Each mess In queue
queue.Peek()
doc.LoadXml(CType(mess.Body, String))
element = doc.DocumentElement
LogEntry(element.SelectSingleNode("/GMImport/NewContact/RecID").InnerText,
EventLogEntryType.Information, enLogMode.Medium_Importance)
Next

Catch ex As Exception
LogEntry(ex.Message, EventLogEntryType.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****@discussions.microsoft.com> wrote in message
news:C9**********************************@microsof t.com...


"Webbee" wrote:


"David Browne" wrote:
>
> "Webbee" <We****@discussions.microsoft.com> wrote in message
> news:D4**********************************@microsof t.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.Messaging namespace.
>
> How are you accessing your queues?
> Access to remote private queues requires using a queue FormatName
> instead of
> a PathName.
>
> EG:
> FormatName:direct=os:somehost\private$\somequeue
>
> David
>
>
>


I'm using XP and the System.Messaging 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 XmlMessageFormatter(New String()
{"System.String"})

For Each mess In queue
queue.Peek()
doc.LoadXml(CType(mess.Body, String))
element = doc.DocumentElement
LogEntry(element.SelectSingleNode("/GMImport/NewContact/RecID").InnerText,
EventLogEntryType.Information, enLogMode.Medium_Importance)
Next

Catch ex As Exception
LogEntry(ex.Message, EventLogEntryType.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 .\Administrators 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****@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.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.Messaging namespace.

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

EG:
FormatName:direct=os:somehost\private$\somequeue

David


I'm using XP and the System.Messaging 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 XmlMessageFormatter(New String()
{"System.String"})

For Each mess In queue
queue.Peek()
doc.LoadXml(CType(mess.Body, String))
element = doc.DocumentElement
LogEntry(element.SelectSingleNode("/GMImport/NewContact/RecID").InnerText,
EventLogEntryType.Information, enLogMode.Medium_Importance)
Next

Catch ex As Exception
LogEntry(ex.Message, EventLogEntryType.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****@discussions.microsoft.com> wrote in message
news:C9**********************************@microsof t.com...


"Webbee" wrote:


"David Browne" wrote:
>
> "Webbee" <We****@discussions.microsoft.com> wrote in message
> news:D4**********************************@microsof t.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.Messaging namespace.
>
> How are you accessing your queues?
> Access to remote private queues requires using a queue FormatName
> instead of
> a PathName.
>
> EG:
> FormatName:direct=os:somehost\private$\somequeue
>
> David
>
>
>


I'm using XP and the System.Messaging 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 XmlMessageFormatter(New String()
{"System.String"})

For Each mess In queue
queue.Peek()
doc.LoadXml(CType(mess.Body, String))
element = doc.DocumentElement
LogEntry(element.SelectSingleNode("/GMImport/NewContact/RecID").InnerText,
EventLogEntryType.Information, enLogMode.Medium_Importance)
Next

Catch ex As Exception
LogEntry(ex.Message, EventLogEntryType.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 .\Administrators 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****@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.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


"David Browne" wrote:

"Webbee" <We****@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.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

I thought that would do it but still no luck. I keep getting that same
error. Are you sure you can use MSMQ3 in work group mode via a service? I
just can't get the thing to work for me. I have found little info on the web
so far about this particular situation so I'm not sure what to try next. I
thank you for helping me so far.
Nov 21 '05 #11

"Webbee" <We****@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.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 #12


"David Browne" wrote:

"Webbee" <We****@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.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

I thought that would do it but still no luck. I keep getting that same
error. Are you sure you can use MSMQ3 in work group mode via a service? I
just can't get the thing to work for me. I have found little info on the web
so far about this particular situation so I'm not sure what to try next. I
thank you for helping me so far.
Nov 21 '05 #13
If anyone has any more ideas I would welcome the help.

"Webbee" wrote:
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 #14
If anyone has any more ideas I would welcome the help.

"Webbee" wrote:
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 #15

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

Similar topics

0
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...
1
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...
5
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...
3
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...
4
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...
2
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...
11
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...
1
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...
1
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...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.