CurrentPrincipal is null in IErrorHandler.ProvideFault?

52 Views Asked by At

I have created a IErrorHandler to handle all Exception in the WCF service. The problem is that as soon as I get to the ProvideFault method the Thread.CurrentPrincipal is null? It is poroperly set in the servicemethod?

The evaluationContext.Properties["Principal"] is set in the IAuthorizationPolicy.Evaluate based on IncomingMessageHeader.

I suspect that the IErrorHandler.ProvideFault is executed on another thread.

Is there any way to get the value of Thread.CurrentPrincipal to the IErrorHandler.ProvideFault?

0

There are 0 best solutions below