PrepAway - Latest Free Exam Questions & Answers

You need to ensure that the sack trace details of the exception are not included in the error information sent

You are creating a Windows Communication Foundation (WCF) service that is implemented
as folks. (Line numbers are included for reference only.) 01 <ServiceContract()
02<ServiceBehaior(lncludeExceptionDetailInFaults: Time)> 03Public Class OrderService 04
05eCNperationCortracto()> O6Putdic Sub Submit Order(ByVal anOrder As Order) 07 08Try
09. 10Catch ex As D wide By Zero Exception 11 12End Try 13End Sub 14 1 5End Class
You need to ensure that the sack trace details of the exception are not included in the error
information sent to the client. What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Replace line 11 with the following line. Throw

B.
Replace line 11 with the following line. Throw New FaultException(C Order)(anOrder,

exToSthng0)d

C.
After line 05, add the following line. ‘cFaultContract(GetType(FautException(Of Order)))>
Replace line 11 with the following line. Throw ex

D.
After line 05, add the following line. <FaultContract(GetType(FaultException(CX
Order)))> Replace line 11 with the following line. Throw New FaultException(CX Order)(
anOrder, “Divide by zero exception”)


Leave a Reply