General information
Category:
The Mere Mortals .NET Framework
Title:
Problem saving to Users class
Environment versions
Network:
Windows 2003 Server
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
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