My service methods are tagged PrincipalPermissionAttribute , and I have a special IErrorHandler implementation attached to this service. When an incoming request is not authorized to execute the System.Security.SecurityException method. IErrorHandler.ProvideFault() then fired, and I want to specify a special error. But the error parameter is not the original exception; it did not FaultException . Also, error.InnerException is null, even though I have the following setting in config:
<serviceDebug includeExceptionDetailInFaults="true"/>
Why? How can I achieve the desired behavior?
source share