473,699 Members | 2,431 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Queued Component issue whith MSMQ installed in workgroup mode


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 acknowledgement s were
received.
Heres the client code

IQComponent iQc = null;
try
{
iQc = (IQComponent)
Marshal.BindToM oniker("queue:F ormatName=DIREC T=OS:GirishG_Sr v2\\PRIVATE$
\\SampleQueuedA pplication/new:SampleQueue dLibrary.Sample QueuedComponent "
);
}
catch( Exception e )
{
MessageBox.Show ( "Cannot create Queued Component: " + e.Message );
return;
}
iQc.DisplayMess age ("Hello World!!");
Marshal.Release ComObject(iQc);

Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
5 2823
You can't access a Private queues by an other computer. Make the queue
Public.

Uzytkownik "Girish G" <e_****@hotmail .com> napisal w wiadomosci
news:ea******** ******@TK2MSFTN GP15.phx.gbl...

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 acknowledgement s were
received.
Heres the client code

IQComponent iQc = null;
try
{
iQc = (IQComponent)
Marshal.BindToM oniker("queue:F ormatName=DIREC T=OS:GirishG_Sr v2\\PRIVATE$
\\SampleQueuedA pplication/new:SampleQueue dLibrary.Sample QueuedComponent "
);
}
catch( Exception e )
{
MessageBox.Show ( "Cannot create Queued Component: " + e.Message );
return;
}
iQc.DisplayMess age ("Hello World!!");
Marshal.Release ComObject(iQc);

Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #2
I dont think thats particularly true and besides I am running MSMQ in
workgroup mode.

I can directly access private queues of remote box using following code.

MessageQueue mQueue = new MessageQueue(
"FormatName:DIR ECT=OS:GirishG_ Srv2\\PRIVATE$\ \Test" );
mQueue.Send( "Hello" );

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
Mind to post the server code as well?

Willy.

"Girish G" <e_****@hotmail .com> wrote in message
news:ea******** ******@TK2MSFTN GP15.phx.gbl...

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 acknowledgement s were
received.
Heres the client code

IQComponent iQc = null;
try
{
iQc = (IQComponent)
Marshal.BindToM oniker("queue:F ormatName=DIREC T=OS:GirishG_Sr v2\\PRIVATE$
\\SampleQueuedA pplication/new:SampleQueue dLibrary.Sample QueuedComponent "
);
}
catch( Exception e )
{
MessageBox.Show ( "Cannot create Queued Component: " + e.Message );
return;
}
iQc.DisplayMess age ("Hello World!!");
Marshal.Release ComObject(iQc);

Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #4
Ofcourse Willy, heres the server code

using System;
using System.Enterpri seServices;
using System.Windows. Forms;

namespace SampleQueuedLib rary
{
public interface IQComponent
{
void DisplayMessage( string msg);
}

[InterfaceQueuin g(Interface = "IQComponen t")]
public class SampleQueuedCom ponent: ServicedCompone nt, IQComponent
{
public SampleQueuedCom ponent()
{
}

public void DisplayMessage( string msg)
{
try
{
MessageBox.Show ( null, msg, "Processing
message",Messag eBoxButtons.OK,
MessageBoxIcon. Information,Mes sageBoxDefaultB utton.Button1,
MessageBoxOptio ns.ServiceNotif ication );
}
catch( Exception e )
{
string err = e.Message;
}
}
}
}
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #5
I just found out you are correct. Having read most MSDN's resources on MSMQ
I've never hit upon anything stating access to private queues is not only
local.
Uzytkownik "Girish G" <e_****@hotmail .com> napisal w wiadomosci
news:#f******** ******@TK2MSFTN GP10.phx.gbl...
I dont think thats particularly true and besides I am running MSMQ in
workgroup mode.

I can directly access private queues of remote box using following code.

MessageQueue mQueue = new MessageQueue(
"FormatName:DIR ECT=OS:GirishG_ Srv2\\PRIVATE$\ \Test" );
mQueue.Send( "Hello" );

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #6

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

Similar topics

2
1569
by: richard | last post by:
Hi, I am about to start developing an n-tier system. And was hoping to get an insight into the best ways of doing this. Inparticular, I want to know how I can develop classes/component to be deployed on different servers which will interact with eachother. What is the best mode of interaction? i.e. remoting or web services or other? If I go ahead and deploy the layers on separate servers am I right in thinking that scalability will...
7
2554
by: Jenbo | last post by:
I know this has come up frequently but I can't seem to put my finger on the precise problem as it applies to me. I have a workgroup with a 2003 box with Sql server on it. Also, on this, I have an XP pro machine. So the xp pro machine is running IIS. When I try and open a connection to the Sql Server I get the Sql Server does not exist etc. I am wondering what I need to do to correct this exactly. Because it is on a workgroup and not a...
2
5831
by: Ollie | last post by:
I have a COM+ queued component written in C# and I'm trying to get it to run under the 'NETWORK SERVICE' account, it runs perfectly fine under the 'interactive user' as this happens to be a admin account (this is my development machine) but when I switch the identity in the component services MMC I get an error when trying to start the queued component, see below (this is copied out of the event log) I am using windows 2003 server with...
3
2512
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
11826
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");
1
2814
by: Leo Muller | last post by:
Okay, I got confused here. In order to get the messages out the MSMQ 3, on windows 2003, I need to invoke a COM component (ProgID). However, if I compile a class of .NET, and get a DLL, is this considered a COM component? If this is the case, should I register it? (against all .NET logic?). Or because I call it through the ProgID it knows how to locate the DLL by itself?
14
15872
by: Webbee | last post by:
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
2211
by: =?Utf-8?B?Q0xFQVItUkNJQw==?= | last post by:
We have an asp.net application that will also use MSMQ. When a client makes a request, we want to check several databases and put each response in MSMQ. We don't want the client to wait for all responses to come back. We were wondering if there is some component that will sit on the client and listen for call backs from the the server. We are also concidering using AJAX to poll MSMQ every 5 seconds and show any new responses. Has anyone...
11
1861
by: BillGatesFan | last post by:
I have a web service which calls a .NET queued serviced component in COM+. I turned statistics on for the component. I call the component 10 times, 10 objects get created but they do not go away. I'm calling Marshal.ReleaseComObject after I make each call. public NotifyResponse Notify(NotifyRequest reqMessage) { try {
0
8687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8615
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
9034
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8883
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...
0
5874
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();...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3057
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
2347
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2009
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.