When I try to call a WCF service I am getting the following message \"An error occurred when verifying security for the message.\"
When I remove the custom authenica
I was getting the same error and none of the above help for me.
I finally tracked it down to connectionStrings in a parent web.config (my service was deployed to a child application to an admin site).
Yes sounds ridiculous, but as soon as I wrapped the connection strings in the parent web.config with a location element all started working.
For clarity, in parent web.config, I changed this
to this
Note this error also resulted in this very unhelpful serviceSecurityAudit log message:
Message authentication failed.
Service: ...
Action: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT
ClientIdentity:
ActivityId:
ArgumentNullException: Value cannot be null.
Parameter name: manager