WCF: "An error occurred when verifying security for the message." and Service Security Audit

Sunday, January 23, 2011

I’ve been struggling with an obscure WCF FaultException that kept popping up from time to time when we worked with my services. Basically I’d get a MessageSecurityException that says:  "An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail." And the inner FaultException would say:  "An error occurred when verifying security for the message." It turns out that this is a “garbage” exception that potentially hides behind it any exception that might have possibly occurred when WCF tried to enforce security on the server side.  The exception itself is useless when trying to figure out what went...
no comments