473,545 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

multiple instaces of C# windows servie

hi all, i have made windows service and its working fine. but i want that
multiple instaces of that application should run. The problem is that each
windows service will have its own configuration file,supplied by the front
end of service.

i have tried to make the seperate installers of that application/service
but it removes the previous version before installing the new version, i have
changed names of service, its executable etc it version as well but noting is
working.
what i want is that my windows service have multiple instances running in
same application so that each service reads it own ini and perform tasks.
Feb 22 '08 #1
3 1172
Hi,

"tasleem" <ta*****@discus sions.microsoft .comwrote in message
news:6F******** *************** ***********@mic rosoft.com...
hi all, i have made windows service and its working fine. but i want that
multiple instaces of that application should run. The problem is that each
windows service will have its own configuration file,supplied by the front
end of service.

i have tried to make the seperate installers of that application/service
but it removes the previous version before installing the new version, i
have
changed names of service, its executable etc it version as well but noting
is
working.
what i want is that my windows service have multiple instances running in
same application so that each service reads it own ini and perform tasks.

Take a look in the archives, an approach for this has been posted before.

Feb 22 '08 #2
thanks for ur quick answer, i was able to solve to my own i added the new
installer and changed the name and display name of service and it worked..

"Ignacio Machin ( .NET/ C# MVP )" wrote:
Hi,

"tasleem" <ta*****@discus sions.microsoft .comwrote in message
news:6F******** *************** ***********@mic rosoft.com...
hi all, i have made windows service and its working fine. but i want that
multiple instaces of that application should run. The problem is that each
windows service will have its own configuration file,supplied by the front
end of service.

i have tried to make the seperate installers of that application/service
but it removes the previous version before installing the new version, i
have
changed names of service, its executable etc it version as well but noting
is
working.
what i want is that my windows service have multiple instances running in
same application so that each service reads it own ini and perform tasks.


Take a look in the archives, an approach for this has been posted before.

Feb 22 '08 #3
by the way how to view archives i have used search for text box and perform
search but no results were shown. or archives is some thing else.

"tasleem" wrote:
hi all, i have made windows service and its working fine. but i want that
multiple instaces of that application should run. The problem is that each
windows service will have its own configuration file,supplied by the front
end of service.

i have tried to make the seperate installers of that application/service
but it removes the previous version before installing the new version, i have
changed names of service, its executable etc it version as well but noting is
working.
what i want is that my windows service have multiple instances running in
same application so that each service reads it own ini and perform tasks.
Feb 22 '08 #4

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

Similar topics

13
12025
by: jing_li | last post by:
Hi, you all, I am a newbee for php and I need your help. One of my coworker and I are both developing a webpage for our project using php. We have a copy of the same files in different location on the server (in our own accounts on the same machine). When I am testing both versions of our program using the same browser (IE on Windows or...
11
4911
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., http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=Tidy7IDbDHA.2108%40cpmsftngxa06.phx.gbl) that indicate that ASP will queue up requests when they come...
4
8484
by: RandyS | last post by:
Hello All, I have a windows service that only need to run once a day to download files from an AS400 system. What is the best approach for this type of service. Right now what I have done is to start a thread and calculate the amount of time until the next time to run Now + 23.59.59.00 then put the thread to sleep for the timespan. Is...
12
4852
by: Chakkaradeep | last post by:
Hi all, I created a Minimal Windows Service Program in Visual Studio.NET VC# using the Wizard...i just added the MessageBox Display in OnStart() function and my service is installed properly...but when i started the Service it display that "Local Service started and stopped , Serivces should have Log Support and Alerts Isssued".. what is...
12
2755
by: JSheble | last post by:
I've written a Windows Service using C#, but I cannot seem to figure out how to cancel or prevent the service from starting under certain conditions. For example, in the OnStart I read in some configuration settings, and if anything is either empty, or invalid (such as a DB DataSource string or a missing diredtory, etccc) I don't want the...
3
2775
by: Nathan Sokalski | last post by:
When I view any page in my application a second time, I recieve the following error: System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize) +313 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +201 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean...
6
4967
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing for long running reports. When the processing is complete it uses crystal reports to load a template file, populate it, and then export it to a...
10
4961
by: John | last post by:
I currently have a Windows Service that runs Transactions that are very Processor/Memory Intensive. I have a requirement to deploy multiple instances of the Web service on the Same server. Each Instance needs to run in its own process. My current approach to this is to put all the logic into a separate "Worker" assembly and install it into...
1
1954
by: xoinki | last post by:
hi, I want to install multiple MySQL server instaces in my Fedora machine. I already have a 4.1.x instance running.. Now i want to install 5.2.x ALONG with that. if this installation causes automatic upgradation? I dont want this to happen. what are the steps I need to install another instance? plz help, Xoinki
0
7486
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
7676
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. ...
0
7932
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...
0
7776
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
4965
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
3456
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1905
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
1032
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
729
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.