My service methods are marked with PrincipalPermissionAttribute
and i have a custom IErrorHandler
implementation attached to the service. When an incoming request has no permissions to execute the method System.Security.SecurityException
is thrown. IErrorHandler.ProvideFault()
is then triggered and i want to provide a special fault. But error
parameter is not original exception, it's untyped FaultException
. Moreover, error.InnerException
is null despite i have the following setting in the config:
<serviceDebug includeExceptionDetailInFaults="true"/>
Why? How can i achieve the desired behavior?