How do I set IncludeExceptionDetailInFaults in code without using App.Config?
You can also set it in the [ServiceBehavior] tag above your class declaration that inherits the interface
[ServiceBehavior(IncludeExceptionDetailInFaults = true)] public class MyClass:IMyService { ... }