Hi, I am trying to implement exception shileding for my service using the Exception Handling Application Block.
I have created a DataContract with my custom FaultException Class, declared the ExceptionShielding("PolicyName") directive in the ServiceContract decleration and declared a faultcontract for the OperationContract.
Using the Enterprise Library Configuration Editor, I have included the Server Exception Policy in my app.config, which maps an SQLException to my custom FaultException Class (SQLException->ThrowNewException->Fault Contract Exception Handler wich points
to my custom fault contract and has the proper Property Mappings).
The problem is that when a SQLExpetion is raised at the service, the client always receives a CommunicationException ('An error has occurred while consuming this service. Please contact your administrator for more information. Error ID: blah-blah') and NOT
I have tried EVERYTHING I can think of. It's like the Shileding totally ignores the app.config!
Anybody, please help!