Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem saving to Users class
Message
From
13/12/2007 21:41:19
Raihiemie Razak
Smart Brain Sdn. Bhd.
Malaysia
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Problem saving to Users class
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01275762
Message ID:
01275762
Views:
68
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
Map
View

Click here to load this message in the networking platform