Author: crfenix | Posted on: 6/30/2008 12:53:51 PM | Views : 328

Hi! Could someone please tell me how is possible with this code getting this exception?System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentException: 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, Boolean add)
  at AdminNewsCms.Commons.Utils.Semaphore.Lock(String key) in D:\InetPub\UpstateNY_Publishing\AdminNewsCms.Commons\Utils\Semaphore.cs:line 53I'm using the lock statement for avoiding race conditions so how's possible to get duplicated keys with this code? I'm really stuck with this.Thanks in advance!!!1 public class Go to the complete details ...