windows service termates when user logs out

  • Thread starter Thread starter Andy Fish
  • Start date Start date
A

Andy Fish

hi,

I have a windows service which is managed C# .NET 1.1. It is installed on
many sites but on one site the admin has reported that the service shuts
down whenever someone logs off the console. There is an event log message
saying the service terminated unexpectedly.

The service is running as local system. It does not have 'interact with
desktop' checked and here is nothing in it which is interacting with the
desktop I have been unable to reproduce the problem on any of our test
systems.

does anyone have any ideas why this might happen?

Andy
 
I have a windows service which is managed C# .NET 1.1. It is installed on
many sites but on one site the admin has reported that the service shuts
down whenever someone logs off the console. There is an event log message
saying the service terminated unexpectedly.

[...]
does anyone have any ideas why this might happen?

No, not off-hand. But if the service is terminating unexpectedly, that
probably means that some sort of unhandled exception occured. You should
be able to deliver a version that handles exceptions at the top level and
either recovers, or at the least generates a more informative error
message which can be used to help diagnose the problem.

Pete
 
Back
Top