Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error calling execscalar
Message
From
24/04/2007 15:31:48
Bill Oeftering
Mainstreet Computers, Inc.
Belleville, Michigan, United States
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Error calling execscalar
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01219522
Message ID:
01219522
Views:
61
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
Map
View

Click here to load this message in the networking platform