473,397 Members | 2,033 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,397 software developers and data experts.

MSMQ In Windows Services

Hi

I am developing a windows service which access queue. When i add the
queue to my service and add a installer and install using the
Installutil exe. it gives a error saying that the service failed to
install because it can not determined wheather a queue with format
name exists. My services installs properly with out the queue and it
works fine. When I add the queue and try to install the problem
happens. Please can any one help me.

Thanks & regards
Buddhi
Nov 15 '05 #1
2 6235
Buddhi,

The error message might not be correct. The first thing I would check
is whether or not the account that the service is running under has access
to MSMQ (if it is a local system account, then network access is denied).

I would guess that this is most likely the case. If you run this in a
normal windows application, the code probably works, right?

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Buddhi" <bu*****@sabretch.com> wrote in message
news:20**************************@posting.google.c om...
Hi

I am developing a windows service which access queue. When i add the
queue to my service and add a installer and install using the
Installutil exe. it gives a error saying that the service failed to
install because it can not determined wheather a queue with format
name exists. My services installs properly with out the queue and it
works fine. When I add the queue and try to install the problem
happens. Please can any one help me.

Thanks & regards
Buddhi

Nov 15 '05 #2
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:<uZ**************@TK2MSFTNGP12.phx.gbl>...
Buddhi,

The error message might not be correct. The first thing I would check
is whether or not the account that the service is running under has access
to MSMQ (if it is a local system account, then network access is denied).

I would guess that this is most likely the case. If you run this in a
normal windows application, the code probably works, right?

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Buddhi" <bu*****@sabretch.com> wrote in message
news:20**************************@posting.google.c om...
Hi

I am developing a windows service which access queue. When i add the
queue to my service and add a installer and install using the
Installutil exe. it gives a error saying that the service failed to
install because it can not determined wheather a queue with format
name exists. My services installs properly with out the queue and it
works fine. When I add the queue and try to install the problem
happens. Please can any one help me.

Thanks & regards
Buddhi


Hi Nicholas

Yes about the system account your correct it will restrict on the
account. But that was not the prob that i faced. I got it corrected.
The problem was when you add a MSMQ queue to a windows service the
Path of the queue is give as Format:Direct=OS: Then the machine name
and the queue name and when you add a installer to the queue in that
also the path is given the same way by default. When you try to
install using the Installutil exe it try to refer to the queue using
the full path name that is Including Format:Direct=OS but that is
incorrect the queue path should be only the machine name and the queue
name. So the problem will be solved when delete the Format:Direct=OS
part from the queue path. I think this will be help for some one who
is using MSMQ in a windows service.

Thank you very much for your help.

Buddhi
Nov 15 '05 #3

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

Similar topics

8
by: SunshineGirl | last post by:
I'm trying to trigger an app with the following code from a message queue. It works with only the message box voilà! enabled. But it causes the exception below when it is triggered with the rest of...
5
by: Alex Nitulescu | last post by:
Hi. I'm trying to make MSMQ work, so I go to Control Panel, Windows Components, I select MSMQ (Message Queuing Client Setup, actually) and about half-way through I get a nice message box saying ...
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...
2
by: | last post by:
Hi all, Can someone point me to some good articles that step you through how to setup MSMQ and then use asp.net to write to a queue. What would be nice would also be writing a .net listener...
0
by: brianbass | last post by:
I am having a perplexing issue and am wondering if anyone can see the flaw in my setup. I have 3 windows services and 3 message queues. Each service resides in the same directory and they all...
0
by: TweetyRocks | last post by:
Hi All, I have 2 Dot Net Windows services. The 1st service inserts a message into an MSMQ queue. The second service picks it up from the queue and processes it. It then removes it from the queue...
0
by: TweetyRocks | last post by:
Hi All, I have 2 Dot Net Windows services. The 1st service inserts a message into an MSMQ queue. The second service picks it up from the queue and processes it. It then removes it from the queue...
1
jackb
by: jackb | last post by:
Structure of my application is: 1. Message is dispatched to an application 2. That application puts the message in a private queue 3. Another application reads messages from this queue and...
0
by: shakthi | last post by:
Actually,I have problem with message queuing. I wrote simple service and client that communicate through endpoint that works with netMsmqBinding. Exception occurs when client sends message to...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.