473,569 Members | 2,799 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6255
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.co m

"Buddhi" <bu*****@sabret ch.com> wrote in message
news:20******** *************** ***@posting.goo gle.com...
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.c om> wrote in message news:<uZ******* *******@TK2MSFT NGP12.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.co m

"Buddhi" <bu*****@sabret ch.com> wrote in message
news:20******** *************** ***@posting.goo gle.com...
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=O S: 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=O S 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=O S
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
2493
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 the code. This application works fine when executed by double-clicking on the filename in Explorer. Any ideas? public MonitorForm() {...
5
11655
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 The MSMQ service cannot be started. Error code: 0x42C The Dependency service or group failed to start. If I acknowledge, the "installation"...
11
3563
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
2
1580
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 which monitors the queue and picks up messages and processes them. I am a beginner with MSMQ TIA!
0
1545
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 have a reference to the same dll(a private assembly (although it does have a strong key)). The class in this assembly takes the name of the message...
0
1035
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 after successful processing. The problem is that though the sending service sends only 1 message, the receiving service receives multiple messages in...
0
1030
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 after successful processing. The problem is that though the sending service sends only 1 message, the receiving service receives multiple messages in...
1
4408
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 then calculates the receivers (pager) for this message and then puts single message to different private queues based on receiver types (pager...
0
1216
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 server, and error is: There was an error sending to the queue: No internal Message Queuing certificate exists for the user. This is config of the...
0
7697
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, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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...
1
7672
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...
0
7968
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...
0
5219
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...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2113
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
1
1212
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
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...

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.