VB.Net Windows Service problem
-
Hello, I've written a service that is using serial communication and ADO. It is installed on about 20 different computers, and works mostly very well. In some cases I found a problem. The service is automatically started and is normally working OK at reboot. On these problem computers it does not start, says error "cannot be started, Could not connect to the Service Controller" and in the event log I get event ID 7000 and 7009. When I start manually from SCM it fails the first time, and works the second time after a second or two. This is every time!!! Now I had made an extra service with only one task: make sure the main service is running, checking every minute. With this I thought I could work around the problem. But not!!! Now at reboot it first fails to start the "Pilot service" and succeed to start the main service! This is like 2 tries and fail first and succeed second time... I have checked the computer at energy saving and so on, nothing is at sleep any time... Anybody recognize this behaviour? Please let me know before I go nuts... :confused: Gösta Eriksson