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

OnStart never executes in WIndows Service on certain machine

I have a windows service that initializes (i.e., the
Service:ServieBase class gets constructed),
but the OnStart() method never fires.

I can attach a debugger to it, and it's just sitting on:
ServiceBase.Run(ServicesToRun);

On the same server, I have another service I've created which runs
just fine. Both services were installed using the Windows Installer,
exactly the same deal... both services run on other machines too.

BTW: when the constructor starts, I log "Service Initializing" at the
top, and "Service Initialized" at the bottom of the constructor, and
both get logged.

BUT THE ONSTART method never fires!

Service status remains forever: "STARTING" I have to kill the process
to make it go away!

I also am handling AppDomain.CurrentDomain.UnhandledException += ...
but that never fires either.

This machine however is a Windows 2000 server.
Is there anything pecurliar with Windows 2000?

It's a .NET 2.0 C# service application.
Jun 27 '08 #1
0 1071

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

Similar topics

2
by: MatthewRoberts | last post by:
Howdy All, I have a Windows Service that often stops in its tracks with no exception and no explanation on our QA system. During testing on the development machine, it can handle any workload,...
3
by: Dave Wright | last post by:
Hi, I am implementing a service that connects to an SMS Controller. We are implementing this using an assembly in the OnStart() method of a Windows service. This is working fine, however I...
6
by: Next | last post by:
Hello, In my OnStart event I have several checks to make sure values in the config file are correct. If any of the values are incorrect I don't want the service to start. Is there a "cancel...
3
by: =?Utf-8?B?dGhlamFja29mYWxs?= | last post by:
I have a Windows Service. When I start the service from the Services window, it indicates that the service started, but does not execute. When I debug with a public method of Service1 that...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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
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...

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.