What should you do to add error handling to the WCF service?

You create a client application by using Microsoft .NET Framework 3.5.
The client application uses a Windows Communication Foundation (WCF) service.
You plan to implement inspection handling on the client application and the WCF service.
You need to add error handling to the WCF service.
What should you do?

You create a client application by using Microsoft .NET Framework 3.5.
The client application uses a Windows Communication Foundation (WCF) service.
You plan to implement inspection handling on the client application and the WCF service.
You need to add error handling to the WCF service.
What should you do?

A.
Modify the BeforeSendReply method to catch the ReplyValidationFault exception.
Replace the reply message with an explicit fault message.

B.
Modify the BeforeSendRequest method to catch the ReplyValidationFault exception.
Replace the reply message with an explicit fault message.

C.
Modify the AfterReceiveRequest method to catch the ReplyValidationFault exception.
Replace the reply message with an explicit fault message.

D.
Modify the AfterReceiveReply method to catch the ReplyValidationFaultexception.
Replace the reply message with an explicit fault message.



Leave a Reply 0

Your email address will not be published. Required fields are marked *