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,
 
Back
Top