C# Windows service hangs



I have a Windows Service in C# talking to a serial port and using
Remoting.
It also uses several COM objects. On server the service will
occassionally hang somewhere - the service still shows on a Task
Manager
list. In Services it says it is still running. However there is no way
to
stop it other than by rebooting the whole computer. No exception
(including
non-CLS) is ever generated. I added a separate System.Timers.Timer
which
detects that the main thread stopped working. I was trying to stop it
by
using System.ServiceProcess.ServiceController.Stop() which didn't
work. I
tried to do process.Kill() which also doesn't work (and no exception).
Is
there a bug in framework somewhere. I don't even hope to find out why
it
hangs but if I could just kill it that would solve the problem since I
have
another Service which would bring it up. I'll be greatful for any
ideas.
.



Relevant Pages

  • RemotingException.
    ... makes a call to a remoting server to get information on what the page should ... customErrors in the server's .config file. ... An unhandled exception occurred during the execution of the ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: RemotingException.
    ... configuring my remoting client (and server). ... How do I change this programmatic configuration to return all of the ... My feeling is that an exception or error is being ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: RemotingException.
    ... as the one in the GAC on the server? ... Here's a reference for how remoting resolves object references and how it ... > I built a small configuration file and used ... > do get a report for an exception that is not Remoting related. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: RemotingException.
    ... I am using SAO interfaces to my server. ... >> do get a report for an exception that is not Remoting related. ...
    (microsoft.public.dotnet.framework.remoting)
  • Windows Service hangs
    ... I have a Windows Service in C# talking to a serial port and using Remoting. ... occassionally hang somewhere - the service still shows on a Task Manager ... tried to do process.Killwhich also doesn't work (and no exception). ...
    (microsoft.public.dotnet.languages.csharp)

Loading