Hi,
I am getting the following exception from a NameValueCollection. I
dont understand the situation in which this exception can occur and I
am not able to create it in Debug mode.
The NameValueCollection is supposed to ignore the duplication of keys
and append them but here its throwing an exception saying that the Key
already exists. Can anyone shed more light on this.
Exception Details are pasted below:
Regards,
Vikram
General Information
*********************************************
Additional Info:
ExceptionManager.MachineName: SU
ExceptionManager.TimeStamp: 11/13/2004 4:23:09 PM
ExceptionManager.FullName:
Microsoft.ApplicationBlocks.ExceptionManagement, Version=1.0.5002.0,
Culture=neutral, PublicKeyToken=80f598c3eb6f09c4
ExceptionManager.AppDomainName: DefaultDomain
ExceptionManager.ThreadIdentity:
ExceptionManager.WindowsIdentity: comm\Service
1) Exception Information
*********************************************
Exception Type: System.ArgumentException
Message: Item has already been added. Key in dictionary: "Refresh"
Key being added:
"Refresh"
ParamName: NULL
TargetSite: Void Insert(System.Object, System.Object, Boolean)
HelpLink: NULL
Source: mscorlib
StackTrace Information
*********************************************
at System.Collections.Hashtable.Insert(Object key, Object nvalue,
Boolean add)
at System.Collections.Hashtable.Add(Object key, Object value)
at System.Collections.Specialized.NameObjectCollectio nBase.BaseAdd(String
name, Object value)
at System.Collections.Specialized.NameValueCollection .Add(String
name, String value)
at Utilities.ConfigSettingsInfo.GetParameter(String
strFunctionalityName, NameValueCollection& nvcConfigSettings, Int32
intDBConnectionMode)