Windows Service Problem

  • Thread starter Thread starter Victor
  • Start date Start date
V

Victor

I made a window service with c# and when the machine were the service
is installed is reset and start again, the service is started but it
doesn`t go, i stop and start the service and it goes perfectly, what
can i revise?
 
Hi,

You can override the event "protected override void OnShutDown" and put your
dump there and diable the OnStop code when this event is executed.

Hope this helps
Salva
 
does your service depend of something that may not be accesible at startup?

put an event log and include some try/catch to see if you get any errors,
for example I have one service that listen to a port , when I stop it &
restart the service very fast it does start but the socket operation fails,
as this error occur in a different thread the process is running anyway.


cheers,
 

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

Back
Top