Service starts then stops

B

Beeeeeves

Hi, hope somebody can help...
I have created a service which has a filesystemwatcher as its main
component, it then logs information received in the events to an access
database. I was using a setup project to install it, then attach to its
process, very successfully for quite a while, I was almost thinking how well
it was behaving - now whatever I do, whenver it starts it gives me a message
along the lines of "the service started then immediately stopped again. Some
services do do this, such as the Performance logs and alerts service."
I can't debug it as i can't get its process to run for long enough to
attach to, as the message box pops up immediately.

I have no idea what I have changed to make it do this. I have tried every
possible combination of property settings, even started a whole new project
and imported the code into it- no success. it is very annoying... what has
gone so incredibly wrong that it just refuses to run?
 
G

Guest

Well thanks for all your great suggestions.
As it happens what had happened was that the service was throwing an exception on startup, and it couldn't log it to the event log because the exception was being thrown because it had filled up the event log. Chicken and egg situation to resolve you'd think.... took me 2 bloody hours to solve that
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top