News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Advertisement

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;
01 [ServiceContract]
02 [ServiceBehavior(includeExceptionDetailsInFaults = true)
03 public class OrderService
04 {
05 [Operation Contract]
06 public void Submit Order(Order anOrder)
07 {
08 try
09 {
10 ...
11 }
12 catch(DivideByZeroExcepton ex)
13 {
14
15 }
16 }
17 }

You need to ensure that the stack trace details of the exception ae not included in the error information sent to the client. What should you do?

  1. Replace line 14 with the following line.

    throw:
  2. Replace line 14 with the following line

    throw new FaultException<Order>(anOrder, ex.ToString());
  3. After line 05, add the following line.

    [FaultContract(typeof(FaultException<Order>))]

    Replace line 14 with the following line

    throw ex;
  4. Alter line 05, add the following line

    [FaultContract(typeof(FaultException<Order>))]

    Replace line 14 with the following line.

    throw new FaultException<Order>(anOrder, "Divide by zero exception");
Answer: Answer is d
comments powered by Disqus
Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;