![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | WCF: Generic unhandled exception logging I am writing a WCF web service hosted under IIS and have several interfaces and numerous methods. I need to log any unhandled exceptions that occur on the server side. I could go and put an exception handler around every method and do the log, but prefer to have some type of generic event or process messaging that would occur for any unhandled exceptions and log them. In ASP.NET web application, you have the Application_Error event. In ASP.NET Web Services, you could write a SoapExtension and be in the pipeline for all messages and log any exceptions that occur. I am thinking that SoapExtension will not work for WCF services, anyone know? Any other suggestions on how to provide this functionality? Thanks |
| | #2 (permalink) |
| Guest | Re: Generic unhandled exception logging You can provide an IErrorHandler implementation, implementing ProvideFault() and HandleError(). Personally, I use a custom behaviour to register my error-handler against the ChannelDispatcher. That should be enough for google to fill in the gaps ;-p e.g. http://www.extremeexperts.com/Net/Ar...lingInWCF.aspx Marc |
| | #3 (permalink) |
| Guest | Re: Generic unhandled exception logging On Jun 5, 9:06 am, "Marc Gravell" <marc.grav...@gmail.com> wrote: > You can provide an IErrorHandler implementation, implementing > ProvideFault() and HandleError(). Personally, I use a custom behaviour > to register my error-handler against the ChannelDispatcher. > > That should be enough for google to fill in the gaps ;-p > > e.g.http://www.extremeexperts.com/Net/Ar...lingInWCF.aspx > > Marc cool, looks like what I need, figured WCF had some type of support for this. Thanks!! |
| |
| |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unhandled Exception in Console Application | AG | .NET General | 10 | 04-10-2008 09:20 AM |
| Custom Exception Handling And Logging using EnterPrise Library app | Shrikant More | .NET General | 0 | 03-31-2008 12:08 AM |
| How catch unhandled Exception in WPF Project | Horst Klein | Avalon | 6 | 08-17-2007 10:06 AM |
| Unhandled exception at 0x779447f2 in explorer.exe: 0xC00000FD: Stack overflow. | Eigil Krogh | Vista General | 2 | 06-22-2007 01:23 PM |
| Unhandled exception 0xC0000005 in migcore.dll when upgrading to Vi | Super_Leandro | Vista General | 0 | 04-30-2007 10:12 PM |