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);
WcfApplication Class | SourceForge.AsyncWcfLib Namespace