473,839 Members | 1,408 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 15883

"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
3729
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 =...
1
2539
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
2834
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
2517
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
11831
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
3522
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 transactional Q the memory usage (in task manager) keeps getting larger (as if GC never cleans up)
11
3590
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
4784
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...
1
11404
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 are not in the same network as the server/s. Right now I am creating small test apps so I can...
0
9697
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
10908
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10648
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10293
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...
1
7828
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7017
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();...
1
4484
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
2
4064
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3134
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.