[Encrypt communications] An item with the same key has already been added. (Bug #204)
When trying to check "Encrypt communications" the following issue occurrs: first time CCTray connects to CCNet server just fine, project list is available. When CCTray application is closed and reopened the connection is not available. When trying to delete the old record and add it once more you recieve an error message:
Failed to connect to server: Server did not allow the connection to be secured: Unable to process: An item with the same key has already been added.
CCTray version: 1.8.2
Windows Server 2008, SP2
PS: Could not post the issue in CCTray bug-tracker since Affected Version can not be selected there.
I found that this was caused by the server service itself.
Steps to reproduce:
1. Goto Settings and Add server to CCTray using Encrypt Communications
2. Add projects and click ok
3. Goto Settings, Remove all projects from above server and click ok (this removes the server from CCTray)
4. Try to repeat step 1 and it fails.
Restarting the CruiseControl.NET server service fixes the issue.
@ beck about 4 years agoUpdated by
potential fix submitted as pull request - https://github.com/ccnet/CruiseControl.NET/pull/207/files