This is one of the trickiest and most obscure errors that I have encountered. I’ve seen this happen twice over the last year or so. The first time, I tried everything and eventually, after spending nearly a day researching and debugging, found the answer.
You receive a Microsoft Windows Communication Foundation (WCF) error stating:
An error occurred when verifying security for the message.
Cause and Verification
First, check the system time of both the server and the client systems. Once you’ve logged into the servers, just type “time” (and press enter a second time) or look at the clock displayed on the taskbar.
If the times are out of sync by more than a few minutes, then this is probably the problem. To sync times see the solution below. If your clocks are in sync, then it’s another solution.
To sync clocks, follow the below steps:
- Open a command prompt.
- Enter the command “w32tm /resync”
If there has been any network changes, then you may also use “w32tm /resync /rediscover”. That additional argument will tell the server to find a new time synchronization server.
- How to synchronize the time with the Windows Time service in Windows XP (Microsoft Support, KB 307897)
- Windows Time Service and Internet Communication (Microsoft TechNet)