Connecting Tech Pros Worldwide Help | Site Map

Using MSMQ on a workgroup?

  #1  
Old November 21st, 2005, 11:13 AM
Webbee
Guest
 
Posts: n/a
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

  #2  
Old November 21st, 2005, 11:14 AM
David Browne
Guest
 
Posts: n/a

re: Using MSMQ on a workgroup?



"Webbee" <Webbee@discussions.microsoft.com> wrote in message
news:D453037A-B4F9-4A4B-80DE-D8C1CD51E38A@microsoft.com...[color=blue]
>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
>[/color]

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


  #3  
Old November 21st, 2005, 11:15 AM
Webbee
Guest
 
Posts: n/a

re: Using MSMQ on a workgroup?




"David Browne" wrote:
[color=blue]
>
> "Webbee" <Webbee@discussions.microsoft.com> wrote in message
> news:D453037A-B4F9-4A4B-80DE-D8C1CD51E38A@microsoft.com...[color=green]
> >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
> >[/color]
>
> 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
>
>
>[/color]

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
  #4  
Old November 21st, 2005, 11:15 AM
Webbee
Guest
 
Posts: n/a

re: Using MSMQ on a workgroup?




"Webbee" wrote:
[color=blue]
>
>
> "David Browne" wrote:
>[color=green]
> >
> > "Webbee" <Webbee@discussions.microsoft.com> wrote in message
> > news:D453037A-B4F9-4A4B-80DE-D8C1CD51E38A@microsoft.com...[color=darkred]
> > >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
> > >[/color]
> >
> > 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
> >
> >
> >[/color]
>
> 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[/color]

Also from what I have read I don't think I can use private format names when
in workgroup mode.
  #5  
Old November 21st, 2005, 11:15 AM
David Browne
Guest
 
Posts: n/a

re: Using MSMQ on a workgroup?



"Webbee" <Webbee@discussions.microsoft.com> wrote in message
news:C9A3E95D-0F16-4729-9D79-58CC04C751E0@microsoft.com...[color=blue]
>
>
> "Webbee" wrote:
>[color=green]
>>
>>
>> "David Browne" wrote:
>>[color=darkred]
>> >
>> > "Webbee" <Webbee@discussions.microsoft.com> wrote in message
>> > news:D453037A-B4F9-4A4B-80DE-D8C1CD51E38A@microsoft.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
>> >
>> >
>> >[/color]
>>
>> 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[/color]
>
> Also from what I have read I don't think I can use private format names
> when
> in workgroup mode.[/color]

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


  #6  
Old November 21st, 2005, 11:15 AM
Webbee
Guest
 
Posts: n/a

re: Using MSMQ on a workgroup?




"Webbee" wrote:
[color=blue]
>
>
> "David Browne" wrote:
>[color=green]
> >
> > "Webbee" <Webbee@discussions.microsoft.com> wrote in message
> > news:D453037A-B4F9-4A4B-80DE-D8C1CD51E38A@microsoft.com...[color=darkred]
> > >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
> > >[/color]
> >
> > 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
> >
> >
> >[/color]
>
> 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[/color]

Also from what I have read I don't think I can use private format names when
in workgroup mode.
  #7  
Old November 21st, 2005, 11:15 AM
David Browne
Guest
 
Posts: n/a

re: Using MSMQ on a workgroup?



"Webbee" <Webbee@discussions.microsoft.com> wrote in message
news:C9A3E95D-0F16-4729-9D79-58CC04C751E0@microsoft.com...[color=blue]
>
>
> "Webbee" wrote:
>[color=green]
>>
>>
>> "David Browne" wrote:
>>[color=darkred]
>> >
>> > "Webbee" <Webbee@discussions.microsoft.com> wrote in message
>> > news:D453037A-B4F9-4A4B-80DE-D8C1CD51E38A@microsoft.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
>> >
>> >
>> >[/color]
>>
>> 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[/color]
>
> Also from what I have read I don't think I can use private format names
> when
> in workgroup mode.[/color]

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


  #8  
Old November 21st, 2005, 11:15 AM
Webbee
Guest
 
Posts: n/a

re: Using MSMQ on a workgroup?


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?
  #9  
Old November 21st, 2005, 11:15 AM
David Browne
Guest
 
Posts: n/a

re: Using MSMQ on a workgroup?



"Webbee" <Webbee@discussions.microsoft.com> wrote in message
news:629E1F3E-3393-42AF-8126-E96639F68D36@microsoft.com...[color=blue]
> 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?[/color]

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


  #10  
Old November 21st, 2005, 11:15 AM
Webbee
Guest
 
Posts: n/a

re: Using MSMQ on a workgroup?


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?
  #11  
Old November 21st, 2005, 11:15 AM
Webbee
Guest
 
Posts: n/a

re: Using MSMQ on a workgroup?




"David Browne" wrote:
[color=blue]
>
> "Webbee" <Webbee@discussions.microsoft.com> wrote in message
> news:629E1F3E-3393-42AF-8126-E96639F68D36@microsoft.com...[color=green]
> > 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?[/color]
>
> 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
>
>
>[/color]
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.
  #12  
Old November 21st, 2005, 11:15 AM
David Browne
Guest
 
Posts: n/a

re: Using MSMQ on a workgroup?



"Webbee" <Webbee@discussions.microsoft.com> wrote in message
news:629E1F3E-3393-42AF-8126-E96639F68D36@microsoft.com...[color=blue]
> 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?[/color]

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


  #13  
Old November 21st, 2005, 11:15 AM
Webbee
Guest
 
Posts: n/a

re: Using MSMQ on a workgroup?




"David Browne" wrote:
[color=blue]
>
> "Webbee" <Webbee@discussions.microsoft.com> wrote in message
> news:629E1F3E-3393-42AF-8126-E96639F68D36@microsoft.com...[color=green]
> > 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?[/color]
>
> 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
>
>
>[/color]
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.
  #14  
Old November 21st, 2005, 11:21 AM
Webbee
Guest
 
Posts: n/a

re: Using MSMQ on a workgroup?


If anyone has any more ideas I would welcome the help.

"Webbee" wrote:
[color=blue]
> 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
>[/color]
  #15  
Old November 21st, 2005, 11:21 AM
Webbee
Guest
 
Posts: n/a

re: Using MSMQ on a workgroup?


If anyone has any more ideas I would welcome the help.

"Webbee" wrote:
[color=blue]
> 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
>[/color]
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.Net and MSMQ Mike Z answers 0 November 18th, 2005 02:23 PM
MSMQ workgroup and C# MSMQ workgroup and C# answers 4 November 16th, 2005 07:19 PM
Queued Component issue whith MSMQ installed in workgroup mode Girish G answers 5 November 16th, 2005 11:43 AM
[REPOST] Queuing application not working Abhishek Srivastava answers 4 November 15th, 2005 06:43 PM