Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unexpected error when update record
Message
De
02/08/2007 04:28:43
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Unexpected error when update record
Versions des environnements
Environment:
VB 8.0
Divers
Thread ID:
01245406
Message ID:
01245406
Vues:
75
I create a screen to insert and update records of a table using some textboxes and dropdownlists. The new record can be successfully inserted. But have error every time I
want to update the record. Below is exception message.
System.InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Data.IDbCommand'.
   at OakLeaf.MM.Main.Data.mmDataAccessBase.CreateUpdateSelectCommand(DataSet ds, String tableName)
   at OakLeaf.MM.Main.Data.mmDataAccessSql.SaveDataSet(DataSet ds, String tableName, String primaryKeyName, Boolean retrieveAutoIncrementPK, IDbDataAdapter dbAdapter)
   at OakLeaf.MM.Main.Business.mmBusinessObject.SaveDataSet(DataSet ds, String tableName, String databaseKey, IDbDataAdapter dbAdapter)
   at OakLeaf.MM.Main.Business.mmBusinessObject.SaveDataSet(DataSet ds, String tableName, String databaseKey)
   at OakLeaf.MM.Main.Business.mmBusinessObject.SaveDataSet(DataSet ds, String tableName)
   at OakLeaf.MM.Main.Business.mmBusinessObject.SaveDataSet(DataSet ds)
   at OakLeaf.MM.Main.Web.UI.mmBusinessWebPage.Save(mmBusinessObject bizObj, DataSet ds, String tableName)
   at OakLeaf.MM.Main.Web.UI.mmBusinessWebPage.Save(mmBusinessObject bizObj, String tableName)
   at OakLeaf.MM.Main.Web.UI.mmBusinessWebPage.Save(mmBusinessObject bizObj)
I am using MM.Net version 2.1. May I know what is the possible cause of this error?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform