Enterprise Library 5.0 - How to Use exception shielding in WCF

Topics: Exception Handling Application Block
Nov 25, 2010 at 6:11 AM

Could you please provide the sample code to achieve implementation of exception shielding in WCF application.




Nov 25, 2010 at 6:29 AM

There isn't much code involve doing this, just adding the ExceptionShielding attribute in your service contract and specifying the FaultContractType in your methods.  This task is more of configuration.  You can refer to this blog for the detailed steps.  It uses 3.1 version of Enterprise Library but the same steps still apply to the latest version.


Sarah Urmeneta
Global Technologies and Solutions
Avanade, Inc.