Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Placement of delete rule - business objects
Message
From
18/07/2006 21:50:09
Bill Oeftering
Mainstreet Computers, Inc.
Belleville, Michigan, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01137129
Message ID:
01137461
Views:
16
Thanks for your answers. When I stepped thru I found that my validation rules weren't checking for the deleted status on the rowset. This is the code actually throwing the exeception:
this.ValidateName(dr["cname1"].ToString());
System.Data.DeletedRowInaccessibleException was unhandled
  Message="Deleted row information cannot be accessed through the row."
  Source="System.Data"
  StackTrace:
       at System.Data.DataRow.GetDefaultRecord()
       at System.Data.DataRow.get_Item(String columnName)
       at Mainstreet.GlasAve.BusinessObjects.CustomerRules.CheckRulesHook(DataSet ds, String tableName) in D:\dotnet\glasave8\Glas-Avenue8\MM Business Object Library1\CustomerRules.cs:line 36
       at OakLeaf.MM.Main.Business.mmBusinessRule.CheckRules(DataSet ds, String tableName, Boolean useErrorProvider)
       at OakLeaf.MM.Main.Business.mmBusinessObject.CheckRules(mmBusinessObject businessObject, DataSet ds, String tableName)
       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(String tableName)
       at OakLeaf.MM.Main.Business.mmBusinessObject.SaveRow()
       at Mainstreet.GlasAve.BusinessObjects.test.customer_test_CustomerDelete() in D:\dotnet\glasave8\Glas-Avenue8\POS_test\test.cs:line 31
       at Mainstreet.GlasAve.BusinessObjects.test.Main(String[] args) in D:\dotnet\glasave8\Glas-Avenue8\POS_test\test.cs:line 15
       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform