G
Guest
Hello,
I need to know if the AppDomain.UnhandledException event can be handled
using a Windows Service. I've create a Windows Service that uses the
Exception Handling Applilcation Block and there are certain exceptoions that
I want bubbled up as unhandled exceptions so in the Main method I add a
method for handling Unhandled Exceptions.
The code never seems to get hit.
Doing some research, I remember that the UnhandledException event is
specific to one app domain. When the ServiceBase.Run(ServiceBase[]) method
is called, I am assuming each servicebase is created in its own app domain.
So for kicks I added the UnhandledException assignment to both the service
constructor and the OnStart method, neither of which seems to have worked
either.
Does this even work from a Windows Service?
Please advise.
Thanks,
The Man From SQL
I need to know if the AppDomain.UnhandledException event can be handled
using a Windows Service. I've create a Windows Service that uses the
Exception Handling Applilcation Block and there are certain exceptoions that
I want bubbled up as unhandled exceptions so in the Main method I add a
method for handling Unhandled Exceptions.
The code never seems to get hit.
Doing some research, I remember that the UnhandledException event is
specific to one app domain. When the ServiceBase.Run(ServiceBase[]) method
is called, I am assuming each servicebase is created in its own app domain.
So for kicks I added the UnhandledException assignment to both the service
constructor and the OnStart method, neither of which seems to have worked
either.
Does this even work from a Windows Service?
Please advise.
Thanks,
The Man From SQL