473,395 Members | 1,681 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,395 software developers and data experts.

Problem in launching process from a windows service!

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.

Nov 17 '05 #1
5 2875
"Nick" <ni*******@yahoo.com.cn> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.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
Nov 17 '05 #2
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.

Nov 17 '05 #3
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.com

"Nick" <ni*******@yahoo.com.cn> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.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.

Nov 17 '05 #4
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.

Nov 17 '05 #5
"Nick" <ni*******@yahoo.com.cn> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.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
Nov 17 '05 #6

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

Similar topics

8
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...
6
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...
1
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...
3
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...
5
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...
0
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.
2
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...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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,...
0
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...
0
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...
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...

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.