How can the client application get the precise server exception ?

 Posted by Rajnilari2015 on 12/1/2015 | Category: WCF Interview questions | Views: 1941 | Points: 40
Answer:

If the client app(s) wants to get the reason for the precise exception cause, FaultException which happens through FaultContract finds it's place.

Another way to achieve the precise server exception is to set
<serviceDebug includeExceptionDetailInFaults="true"  />

In production environment, must should set it to False.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response