ReplicatedCache fails with "Already exists" error

Topics: User Forum
Jul 23, 2010 at 5:17 PM
Edited Jul 23, 2010 at 6:07 PM
I've got an application, and as long as I don't have any servers listed in the replicatedServers area in my web.config everything works fine. When I put two servers in the replicatedServers area, it fails.

here's the error:

Unhandled Exception appears: An item with the same key has already been added.

at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boo lean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at SharedCache.WinServiceCommon.Sockets.ManageTcpSocketConnectionPool..ctor(B oolean instanceClientPools)
at SharedCache.WinServiceCommon.Sockets.ManageClientTcpSocketConnectionPoolFa ctory.GetClient(String host)
at SharedCache.WinServiceCommon.IndexusMessage.Send()
at SharedCache.WinServiceCommon.CacheUtil.HandleProtocol(IndexusMessage msg, String lastUsedServerNodeIp)

Object Added with key : test
Unhandled Exception appears: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boo lean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at SharedCache.WinServiceCommon.Sockets.ManageTcpSocketConnectionPool..ctor(B oolean instanceClientPools)
at SharedCache.WinServiceCommon.Sockets.ManageClientTcpSocketConnectionPoolFa ctory.GetClient(String host)
at SharedCache.WinServiceCommon.IndexusMessage.Send()
at SharedCache.WinServiceCommon.CacheUtil.HandleProtocol(IndexusMessage msg, String lastUsedServerNodeIp)

After this it shows a list of the items in the cache:
Object's in cache
************************************