We use the Enterprise Library 4.1 Exception Handling Application Block ExceptionShielding in conjunction with the custom RoleProvider with our WCF services.
When the RoleProvider determines that the user is not in the role and returns false from the IsInRole method, the following exception occurs:
System.ServiceModel.Security.MessageSecurityException, System.ServiceModel, Version = 3.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089
No signature message parts were specified for messages with the '{XXX}' action.
WCF then aborts the RequestContextservice operation and the client disconnects.
I tried to find the solution mentioned in this link without success:
http://www.codeplex.com/entlib/Thread/View.aspx?ThreadId=25236
We also removed the type of exception System.Exceptionfrom the EHAB policy, actually having EHAB doing nothing for this policy, and this has no effect.
The only thing that prevents this exception is to comment on the attribute ExceptionShieldingin the service implementation.
Any fix for this problem would be greatly appreciated.
Jason
source
share