Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - WCF: Generic unhandled exception logging

 
 
Old 06-05-2007   #1 (permalink)
ronscottlangham@yahoo.com


 
 

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 SpecsSystem Spec
Old 06-05-2007   #2 (permalink)
Marc Gravell


 
 

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 SpecsSystem Spec
Old 06-05-2007   #3 (permalink)
ronscottlangham@yahoo.com


 
 

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 SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Microsoft .NET Framework Unhandled exception...... General Discussion
Solved 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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46