AsyncWcfLib

WcfApplication.CurrentDomain_UnhandledException Method

Handle the non-UI exceptions by showing a dialog box, and asking the user whether or not they wish to abort execution. NOTE: This exception cannot be kept from terminating the application - it can only log the event, and inform the user about it. Before 'Application.Run' add the handler for handling non-UI thread exceptions to the event: AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(WcfTrc.DefaultTracePlugin.CurrentDomain_UnhandledException);

public static void CurrentDomain_UnhandledException(
   object sender,
   UnhandledExceptionEventArgs e
);

See Also

WcfApplication Class | SourceForge.AsyncWcfLib Namespace