![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | 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 |
My System Specs![]() |
| | #2 (permalink) |
| | 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 |
My System Specs![]() |
| | #3 (permalink) |
| | 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!! |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Microsoft .NET Framework Unhandled exception...... | General Discussion | |||
Unhandled Exception has occured in your application | General Discussion | |||
| Unhandled Exception in Console Application | .NET General | |||
| Unhandled exception 0xC0000005 in migcore.dll when upgrading to Vi | Vista General | |||