|
-
November 11th, 2009, 03:32 AM
#1
Windows service staying in "Starting" status!
Hi there this is my first post on the C# Forums. Therefor i will first introduce myself a little bit:
My name is Haye, and i'm a student from the Netherlands, being in the last schoolyear. I like friedpotatoes and since a short period of time i started programming in C#.
So here's my problem:
I have a multi-threaded program wich Polls several devices through a small box running a Nagios setup. The progam needs to be started Manually, so when its running on a server, and the server crashes, big problems will occur since the program will not restart again.
The above part is the main reason why i've decided to create a windows Service. Now, i've already made the program to work as a windows service, but whenever i start the Service, a progressbar pops-up telling me that windows is attempting to start the service, eventually when the progressbar is fully-filled, another pop-up comes up telling me that the application did not respond in a fashionaly time.
All the popups dissapear, and in the services.msc screen the status of my service is still on "Starting" from that point i need to do a reboot before i can stop the service.
Although the above happens, the program does work correctly, since my database gets updated and log files are created as they would without it being a Service-based program!
I hope someone can help me out!
Greetings,
Haye Haverbus
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|