An error occurred when verifying security for the message

前端 未结 8 1238
半阙折子戏
半阙折子戏 2020-12-05 18:03

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

8条回答
  •  猫巷女王i
    2020-12-05 18:33

    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

提交回复
热议问题