CRM 2011 Outlook Client: "An error occurred when verifying security for the message"
Installed the CRM 2011 Outlook Client today for a customer who had an on-premise installation of the CRM server. Installation went very smoothly (just click "next" a few times), but configuration was another story.
At the configuration step where you need to fill in the CRM URL, you can test the connection and there I received an error saying that the CRM server wasn't accessible.
I was sure I filled in the correct URL and that I was configuring with the correct user account as I copy/pasted it in a web browser and there it worked just fine.
So I looked up the log file of the configuration (C:\Users\user\AppData\Local\Microsoft\MSCRM\Logs\Crm50ClientConfig.txt) and found the following error message in the file:
"System.ServiceModel.FaultException: an error occurred when verifying security for the message"
After some research I found out this was due to the fact that the CRM server's operating system time wasn't the same as the time settings on the client (difference of more than 5 minutes). After setting the time settings correctly, problem was solved and I could finish the configuration without any problems.
CRM 2011 uses WCF and WCF protects against "replay attacks". In short: WCF validates by default the timestamp of the message and ensures there is no difference of more than 5 minutes.
With the CRM 4.0 client you don't have this problem as this client connects to the asmx service.
At the configuration step where you need to fill in the CRM URL, you can test the connection and there I received an error saying that the CRM server wasn't accessible.
I was sure I filled in the correct URL and that I was configuring with the correct user account as I copy/pasted it in a web browser and there it worked just fine.
So I looked up the log file of the configuration (C:\Users\user\AppData\Local\Microsoft\MSCRM\Logs\Crm50ClientConfig.txt) and found the following error message in the file:
"System.ServiceModel.FaultException: an error occurred when verifying security for the message"
After some research I found out this was due to the fact that the CRM server's operating system time wasn't the same as the time settings on the client (difference of more than 5 minutes). After setting the time settings correctly, problem was solved and I could finish the configuration without any problems.
CRM 2011 uses WCF and WCF protects against "replay attacks". In short: WCF validates by default the timestamp of the message and ensures there is no difference of more than 5 minutes.
With the CRM 4.0 client you don't have this problem as this client connects to the asmx service.
Comments
Post a Comment