Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error calling execscalar
Message
De
24/04/2007 15:31:48
Bill Oeftering
Mainstreet Computers, Inc.
Belleville, Michigan, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Error calling execscalar
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01219522
Message ID:
01219522
Vues:
63
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)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform