473,394 Members | 1,813 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,394 software developers and data experts.

[REPOST] Queuing application not working

Hello All,

I am trying to implement the MQ application from quick start samples.
I am getting the following error upon running either the client or the
server.

Unhandled Exception: System.Messaging.MessageQueueException: A workgroup
install
ation computer does not support the operation.
at System.Messaging.MessageQueue.Create(String path, Boolean
transactional)
at System.Messaging.MessageQueue.Create(String path)
at MQRecvSrv.Main(String[] args)

But I am not on a workgroup. I am part of a domain. I also use my domain
id to login to my computer.
Can someone tell me what is the reason for this error and how can this
be solved?

Below is the client server code which I wrote

MQ Send
------------
using System;
using System.Messaging;

public class Person
{
public string name;
public string surname;
}

public class ServSend
{
public static void Main(string[] args)
{
if(!MessageQueue.Exists(".\\MyQueue"))
{
MessageQueue.Create(".\\MyQueue");
Console.WriteLine("Queue created");
}

MessageQueue mq = new MessageQueue(".\\MyQueue");
Person p = new Person();
p.name = "abhishek";
p.surname = "srivastava";
mq.Send(p);
}
}

MQ Receive.
--------------
using System;
using System.Messaging;
using System.IO;
using System.Runtime.Serialization;

public class MQRecvSrv
{
public static void Main(string[] args)
{
if (!MessageQueue.Exists(".\\MyQueue"))
{
MessageQueue.Create(".\\MyQueue");
Console.WriteLine("Queue created");
}
MessageQueue mq = new MessageQueue(".\\MyQueue");
((XmlMessageFormatter)mq.Formatter).TargetTypeName s = new
string[]{"Person"};
Person p = (Person) mq.Receive(new TimeSpan(0, 0, 3)).Body;
Console.WriteLine(" \n Name {0} Surname {1} \n", p.name, p.surname);
Console.WriteLine();
Console.WriteLine("Press enter to continue...");
Console.ReadLine();
}
}

Thanks for your help in advance.

I had posted this problem before but didn't get a response. So I am
posting it again.

regards,
Abhishek.

Nov 15 '05 #1
4 1259
Did you select "Active directory integration" when installing MSMQ?
If not, MSMQ was set-up to operate in workgroup mode, this has nothing to do
with domain membership.

Willy.

"Abhishek Srivastava" <ab******@nospam.net> wrote in message
news:Ot*************@TK2MSFTNGP11.phx.gbl...
Hello All,

I am trying to implement the MQ application from quick start samples.
I am getting the following error upon running either the client or the
server.

Unhandled Exception: System.Messaging.MessageQueueException: A workgroup
install
ation computer does not support the operation.
at System.Messaging.MessageQueue.Create(String path, Boolean
transactional)
at System.Messaging.MessageQueue.Create(String path)
at MQRecvSrv.Main(String[] args)

But I am not on a workgroup. I am part of a domain. I also use my domain
id to login to my computer.
Can someone tell me what is the reason for this error and how can this
be solved?

Below is the client server code which I wrote

MQ Send
------------
using System;
using System.Messaging;

public class Person
{
public string name;
public string surname;
}

public class ServSend
{
public static void Main(string[] args)
{
if(!MessageQueue.Exists(".\\MyQueue"))
{
MessageQueue.Create(".\\MyQueue");
Console.WriteLine("Queue created");
}

MessageQueue mq = new MessageQueue(".\\MyQueue");
Person p = new Person();
p.name = "abhishek";
p.surname = "srivastava";
mq.Send(p);
}
}

MQ Receive.
--------------
using System;
using System.Messaging;
using System.IO;
using System.Runtime.Serialization;

public class MQRecvSrv
{
public static void Main(string[] args)
{
if (!MessageQueue.Exists(".\\MyQueue"))
{
MessageQueue.Create(".\\MyQueue");
Console.WriteLine("Queue created");
}
MessageQueue mq = new MessageQueue(".\\MyQueue");
((XmlMessageFormatter)mq.Formatter).TargetTypeName s = new
string[]{"Person"};
Person p = (Person) mq.Receive(new TimeSpan(0, 0, 3)).Body;
Console.WriteLine(" \n Name {0} Surname {1} \n", p.name, p.surname);
Console.WriteLine();
Console.WriteLine("Press enter to continue...");
Console.ReadLine();
}
}

Thanks for your help in advance.

I had posted this problem before but didn't get a response. So I am
posting it again.

regards,
Abhishek.

Nov 15 '05 #2
You are right. While installing IIS it had asked me a question on MSMQ
and domain controller. However I skipped that step. Can you give me the
steps on how to do it now.

Thank you for your help.

regards,
Abhishek.
Willy Denoyette [MVP] wrote:
Did you select "Active directory integration" when installing MSMQ?
If not, MSMQ was set-up to operate in workgroup mode, this has nothing to do
with domain membership.

Willy.

"Abhishek Srivastava" <ab******@nospam.net> wrote in message
news:Ot*************@TK2MSFTNGP11.phx.gbl...

Hello All,

I am trying to implement the MQ application from quick start samples.
I am getting the following error upon running either the client or the
server.

Unhandled Exception: System.Messaging.MessageQueueException: A workgroup
install
ation computer does not support the operation.
at System.Messaging.MessageQueue.Create(String path, Boolean
transactional)
at System.Messaging.MessageQueue.Create(String path)
at MQRecvSrv.Main(String[] args)

But I am not on a workgroup. I am part of a domain. I also use my domain
id to login to my computer.
Can someone tell me what is the reason for this error and how can this
be solved?

Below is the client server code which I wrote

MQ Send
------------
using System;
using System.Messaging;

public class Person
{
public string name;
public string surname;
}

public class ServSend
{
public static void Main(string[] args)
{
if(!MessageQueue.Exists(".\\MyQueue"))
{
MessageQueue.Create(".\\MyQueue");
Console.WriteLine("Queue created");
}

MessageQueue mq = new MessageQueue(".\\MyQueue");
Person p = new Person();
p.name = "abhishek";
p.surname = "srivastava";
mq.Send(p);
}
}

MQ Receive.
--------------
using System;
using System.Messaging;
using System.IO;
using System.Runtime.Serialization;

public class MQRecvSrv
{
public static void Main(string[] args)
{
if (!MessageQueue.Exists(".\\MyQueue"))
{
MessageQueue.Create(".\\MyQueue");
Console.WriteLine("Queue created");
}
MessageQueue mq = new MessageQueue(".\\MyQueue");
((XmlMessageFormatter)mq.Formatter).TargetTypeName s = new
string[]{"Person"};
Person p = (Person) mq.Receive(new TimeSpan(0, 0, 3)).Body;
Console.WriteLine(" \n Name {0} Surname {1} \n", p.name, p.surname);
Console.WriteLine();
Console.WriteLine("Press enter to continue...");
Console.ReadLine();
}
}

Thanks for your help in advance.

I had posted this problem before but didn't get a response. So I am
posting it again.

regards,
Abhishek.



Nov 15 '05 #3
The easiest solution is probably to uninstall MSMQ and install again.

--
Scott
http://www.OdeToCode.com

On Mon, 05 Jan 2004 06:05:24 +0530, Abhishek Srivastava
<ab******@nospam.net> wrote:
You are right. While installing IIS it had asked me a question on MSMQ
and domain controller. However I skipped that step. Can you give me the
steps on how to do it now.

Thank you for your help.

regards,
Abhishek.


Nov 15 '05 #4

"Abhishek Srivastava" <ab******@nospam.net> wrote in message
news:eb**************@TK2MSFTNGP11.phx.gbl...
You are right. While installing IIS it had asked me a question on MSMQ
and domain controller. However I skipped that step. Can you give me the
steps on how to do it now.

Click "help and support " on the start menu and search for MSMQ.
And before using MSMQ I would suggest you read some documentation on the
subject in MSDN.

Willy.

Nov 15 '05 #5

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

Similar topics

11
by: Ohaya | last post by:
Hi, I'm trying to understand a situation where ASP seems to be "blocking" of "queuing" requests. This is on a Win2K Advanced Server, with IIS5. I've seen some posts (e.g.,...
0
by: Abhishek Srivastava | last post by:
Hello All, I wrote a very simple program to learn the queuing functionality of .net MQ Send ------------ using System; using System.Messaging; public class Person
4
by: Just D. | last post by:
Did anybody use this Message Queuing and knew all details about it? What's the physical limit of this Message Queuing system, number of messages, mbytes, message size? Where it stores messages,...
0
by: sam | last post by:
Hi, I have windows services appliaction. Application reads message from MS message queuing. I have short code example below of my application. I have different process points these point have...
1
by: Dave Pink | last post by:
I support a web server farm of about 80 machines, of which 35 are in Production at any given time. Machines are running Windows 2000 Advanced Server with IIS 5. All 80 machines are configured...
67
by: Scott M. | last post by:
Can anyone give me any ideas on why VS.NET 2003 running on XP Pro. (P4's with 1GB RAM) would take over 3 minutes to simply create a new ASP.NET Web Application on http://localhost? It seems that...
5
by: Adrian Parker | last post by:
I've got the standard SqlCacheDependency working just fine , ie. I've defined (and encrypted) the connectionStrings section in the web.config, and I've also defined an an sqlCacheDependency in the...
25
by: Mark Harrison | last post by:
I would like to try and build a queuing mechanism on top of Postgresql. Imagine an application where a large number of processes generate images and queue up thumbnail requests. A smaller number...
0
by: reaway | last post by:
When I use MessageQueue to send MQ In ASP.NET, Sometime I can send mq sucessfully, however sometime I got the exception "Message Queuing has not been installed". When I encoutered this exception, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
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...
0
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...

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.