Hi,
My WCF service uses ExceptionShielding from Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.WCF. The custom fault exception is caught at client side as
try
{
//Service call
}
catch (FaultException<ServiceReference1.ServiceFault> ex)
{
ServiceReference1.ServiceFault fault = ex.Detail;
bool rethrow = ExceptionPolicy.HandleException(ex, "ExceptionPolicy");
}
Now the server exception is in the form of fault exception (ex.Detail). What is the right pattern to use enterprise exception logging application block to log the custom fault exception.
- Jyothish George