Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem saving to Users class
Message
De
13/12/2007 21:41:19
Raihiemie Razak
Smart Brain Sdn. Bhd.
Malaisie
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Problem saving to Users class
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01275762
Message ID:
01275762
Vues:
67
Hi All,

I am trying to insert new data in the Users class. But, it does not succeed. I'm not sure what's the cause. I've tried to debug UserAdmin.aspx.vb
This problem occur when executing this line of code :-

If Me.oUser.SaveRow() <> mmSaveDataResult.RulesPassed Then

inside Protected Function SaveUser(ByVal UserPk As Object) As Boolean

I can't see the error as the created form by mm does not have exception handling.
So, I've added Try..Catch.. block in between the SaveUser function. Then, I debug again. Below is the stack trace :-

at System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
at System.Data.Common.DbDataAdapter.UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable)
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.Business.mmBusinessObject.SaveDataSet()
at UserAdmin.SaveUser(Object UserPk) in C:\DotNetProjs\MMNet\JEGII\eKONTRAK\eKontrakUI\Admin\UserAdmin.aspx.vb:line 114

Anyone who has faced this problem? Please help..as this is urgent issue..
Thanks in advance.

Regards,
Raihiemie
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform