reifnir
reifnir

Reputation: 143

WCF FaultException Without Sending StackTrace

I have some WCF services with predefined FaultContract attributes. When the FaultException<TDetail> exceptions are thrown, they're sending StackTrace, Source and other potentially unsave information.

Is it possible to return only:

Upvotes: 8

Views: 3993

Answers (1)

Terrance
Terrance

Reputation: 11872

Have you tried rolling your own fault exception using IErrorHandler? Also make sure in your app config file, the IncludeExceptionDetailInFaults attribute is set to false and, this might be helpful for best pratices.

Upvotes: 3

Related Questions