General information
Category:
The Mere Mortals .NET Framework
Title:
Error calling execscalar
Environment versions
Network:
Windows 2003 Server
mm vers.2.3
Getting an error at random: below is the call stack. GlasAve9 is my database key. Code:
return (Convert.ToInt16(this.ExecScalar("select count(*) from zipcodes where czip=@tcZip",this.CreateParameter("@tcZip",tcZip)))>0);
Any ideas ?
System.ArgumentException: Item has already been added. Key in dictionary: 'GlasAve9' Key being added: 'GlasAve9'
at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
at System.Collections.Hashtable.Add(Object key, Object value)
at OakLeaf.MM.Main.Managers.mmDatabaseManager.GetDataAccessClassName(String databaseKey)
at OakLeaf.MM.Main.Business.mmBusinessObject.GetDataAccessObject(String databaseKey)
at OakLeaf.MM.Main.Business.mmBusinessObject.GetDataAccessObject()
at OakLeaf.MM.Main.Business.mmBusinessObject.CreateParameter(String name, Object value)
at Mainstreet.GlasAve.BusinessObjects.gaAuto.IsValidZip(String tcZip)
at Quote_StoreLocator.LoadStores() in w:\Mainstreet Web Services\WebQuote\Quote\StoreLocator.aspx.cs:line 43
at Quote_StoreLocator.Page_Load(Object sender, EventArgs e) in w:\Mainstreet Web Services\WebQuote\Quote\StoreLocator.aspx.cs:line 36
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at OakLeaf.MM.Main.Web.UI.mmBaseWebPage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only