hi, all
Recently, our server which is a windows service got a problem.
This windows service will launch a process to process user's data each
time when a user connection comes in. The problems, once our service
lanunches about 50 process, it starts to get errors say got an
unexception or the process exe failed to initialized properly. I am
wondering, if there is some limitation about how many processes can be
launched from a window service.
So, I wrote a test projects to test this, and you guys can download it
from http://buglist.dotnet31.hostbasket.c...ServerTest.rar
There is readme.txt file in the root folder to explain what each
project does.
Any help would be appricated!
Thanks. 5 2887
"Nick" <ni*******@yaho o.com.cn> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. . hi, all Recently, our server which is a windows service got a problem. This windows service will launch a process to process user's data each time when a user connection comes in. The problems, once our service lanunches about 50 process, it starts to get errors say got an unexception or the process exe failed to initialized properly. I am wondering, if there is some limitation about how many processes can be launched from a window service. So, I wrote a test projects to test this, and you guys can download it from http://buglist.dotnet31.hostbasket.c...ServerTest.rar There is readme.txt file in the root folder to explain what each project does. Any help would be appricated!
Can't you do it without launching a process, ie in a dll instead?
Michael
Yes, we could.
But we also need to process user's data manually. If we put it in a
dll, we will not be able to do it manually.
That doesn't make sense. If you contain the code in the DLL, you still
indicate when it runs, because you have to make an explict call to execute
any code in the dll.
It is most likely a permissions issue, because of the user associated
with the service.
You are better off trying to encapsulate the code in another DLL and
then making calls from your service.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Nick" <ni*******@yaho o.com.cn> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. . Yes, we could. But we also need to process user's data manually. If we put it in a dll, we will not be able to do it manually.
Thanks you all.
What I was saying is, for example we have a exe named pushpull.exe. It
will get users' data file and push the data into database and then pull
new data from database to create users' data files. We have a windows
service to launch this exe, and when we launch it, the service will
provide some parameters to tell the pushpull where is the users' data.
Sometimes, we need to run pushpull.exe manually, to push users' data
into database. This is why we have the pushpull as an exe instead of a
dll.
I will start to encapsulate the code into an dll.
But I am still thinking, why the launch process failed. I do believe
there is some limitation in windows 2000 or .net framework.
Thanks.
"Nick" <ni*******@yaho o.com.cn> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. . Thanks you all. What I was saying is, for example we have a exe named pushpull.exe. It will get users' data file and push the data into database and then pull new data from database to create users' data files. We have a windows service to launch this exe, and when we launch it, the service will provide some parameters to tell the pushpull where is the users' data. Sometimes, we need to run pushpull.exe manually, to push users' data into database. This is why we have the pushpull as an exe instead of a dll.
Just make a simple exe wrapper for the dll when you need to run it manually.
I will start to encapsulate the code into an dll. But I am still thinking, why the launch process failed. I do believe there is some limitation in windows 2000 or .net framework.
Looks like it, although 50 instances doesn't seem to be too high.
Michael This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Fabio Papa |
last post by:
I am trying to write a windows service that sends emails to clients at
specific times based on information in a sql db. Since this is done for
multiple cities, I start a thread for each city and continue the processing
from each thread. My service starts fine (gives me no errors, etc), but it
doesn't seem to start the new threads. I am new to windows services, so I
don't know if I'm doing something wrong. Should I maybe be doing this...
|
by: sergio.calleja |
last post by:
Hi Everybody,
i need to restart a windows service made with c# when an fixed event is
raised.
So to test it, I've added a servicecontroller to my service, and in the
creation method, i've created a new thread to try to stop it.
This is my code:
public Service1()
{
// This call is required by the Windows.Forms Component Designer.
|
by: PankajLohani |
last post by:
hello,
This is very challenging problem for me. basically my windows service monitor the application when my application hang due any reason then my service kill that process and application .Then restart the process and application again.
So for all this I made the service. Well now come on problem, plz come on controlpannel > Administrator Tool > Service >myservice.Then right click on service and go on properties. There is a property on...
|
by: Greg |
last post by:
I am having a problem trying to debug my windows service. The service
itself is working fine (it starts a timer, which writes a log entry
every 20 seconds). However, when I set my breakpoint on the line that
writes the log entry, the code never breaks - it just keeps writing
the log entries. I tried to attach my service to the running process
via Debug | Attach to Process (in VS 2005), but in the list of
Available Processes, my process is...
|
by: =?Utf-8?B?cnZhbmdlbGRyb3A=?= |
last post by:
Hello,
I have a problem with our OnlineBackupService.exe. This is a Windows Service
which is built in .Net 1.1 and basically grabs files from the file system and
will try to upload them using WebServices.
The service is installed by default using LocalSystem account. The exact
problem is that sometimes this service is not allowed to resolve the target
webservice. This results in the following exception:
| |
by: neha modi |
last post by:
i get an error when i try to start the windows service. The error is:
Service cannot be started. The service process could not connect to the service controller.
|
by: DSilent |
last post by:
Hi guys, i have a problem with my windows service project. I already
publish that to my localhost and install it. The installation file has
been created. But at the same time, a message box appear to inform
that i cannot start service from command line or debugger. I must
install it first then start it using service management tools. Do
anyone know whats going on.....?
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |