Microsoft
70-513 · Question #125
You are implementing a Windows Communication Foundation (WCF) service contract named lContosoService in a class named ContosoService. The service occasionally fails due to an exception being thrown…
The correct answer is C. Apply the following attribute to the ContosoService class. See the full explanation below for the reasoning.
Question
You are implementing a Windows Communication Foundation (WCF) service contract named lContosoService in a class named ContosoService. The service occasionally fails due to an exception being thrown at the service. You need to send the stack trace of any unhandled exceptions to clients as a fault message. What should you do?
Options
- AIn the application configuration file on the client, add the following XML segment to the
- BIn the application configuration file on the service and all the clients, add the following
- CApply the following attribute to the ContosoService class.
- DFor each OperationContract exposed by lContosoService, apply the following attribute.
How the community answered
(20 responses)- A5% (1)
- B20% (4)
- C70% (14)
- D5% (1)
Community Discussion
No community discussion yet for this question.