1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
| 'DBGrid.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Data.resources\2.0.0.0_fr_b77a5c561934e089\System.Data.resources.dll'
A first chance exception of type 'System.Data.InvalidConstraintException' occurred in System.Data.dll
'DBGrid.vshost.exe' (Managed): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Transactions.resources\2.0.0.0_fr_b77a5c561934e089\System.Transactions.resources.dll'
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Exception non gérée</Description><AppDomain>DBGrid.vshost.exe</AppDomain><Exception><ExceptionType>System.Data.InvalidConstraintException, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Impossible de supprimer cette ligne, car les contraintes sont appliquées sur la relation datarelationClientCommandes. La suppression de cette ligne rendra les lignes enfants orphelines.</Message><StackTrace> à System.Data.ForeignKeyConstraint.CascadeDelete(DataRow row)
à System.Data.ForeignKeyConstraint.CheckCascade(DataRow row, DataRowAction action)
à System.Data.DataTable.CascadeAll(DataRow row, DataRowAction action)
à System.Data.DataTable.RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, Boolean fireEvent)
à System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Int32 position, Boolean fireEvent, Exception&amp; deferredException)
à System.Data.DataTable.SetNewRecord(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean fireEvent)
à System.Data.DataTable.DeleteRow(DataRow row)
à System.Data.DataRow.Delete()
à System.Data.DataView.Delete(DataRow row)
à System.Data.DataView.System.Collections.IList.RemoveAt(Int32 index)
à System.Windows.Forms.BindingSource.RemoveAt(Int32 index)
à System.Windows.Forms.BindingSource.RemoveCurrent()
à System.Windows.Forms.BindingNavigator.OnDelete(Object sender, EventArgs e)
à System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
à System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
à System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
à System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
à System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
à System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
à System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
à System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)
à System.Windows.Forms.Control.WndProc(Message&amp; m)
à System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)
à System.Windows.Forms.ToolStrip.WndProc(Message&amp; m)
à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
à System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
à System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp; msg)
à System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
à System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
à System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
à System.Windows.Forms.Application.Run(Form mainForm)
à DBGrid.Program.Main() dans C:\Users\raymond\Documents\CSharpBase\DBGrid\DBGrid\Program.cs:ligne 18
à System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
à System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
à Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
à System.Threading.ThreadHelper.ThreadStart_Context(Object state)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
à System.Threading.ThreadHelper.ThreadStart()</StackTrace><ExceptionString>System.Data.InvalidConstraintException: Impossible de supprimer cette ligne, car les contraintes sont appliquées sur la relation datarelationClientCommandes. La suppression de cette ligne rendra les lignes enfants orphelines.
à System.Data.ForeignKeyConstraint.CascadeDelete(DataRow row)
à System.Data.ForeignKeyConstraint.CheckCascade(DataRow row, DataRowAction action)
à System.Data.DataTable.CascadeAll(DataRow row, DataRowAction action)
à System.Data.DataTable.RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, Boolean fireEvent)
à System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Int32 position, Boolean fireEvent, Exception&amp; deferredException)
à System.Data.DataTable.SetNewRecord(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean fireEvent)
à System.Data.DataTable.DeleteRow(DataRow row)
à System.Data.DataRow.Delete()
à System.Data.DataView.Delete(DataRow row)
à System.Data.DataView.System.Collections.IList.RemoveAt(Int32 index)
à System.Windows.Forms.BindingSource.RemoveAt(Int32 index)
à System.Windows.Forms.BindingSource.RemoveCurrent()
à System.Windows.Forms.BindingNavigator.OnDelete(Object sender, EventArgs e)
à System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
à System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
à System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
à System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
à System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
à System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
à System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
à System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)
à System.Windows.Forms.Control.WndProc(Message&amp; m)
à System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)
à System.Windows.Forms.ToolStrip.WndProc(Message&amp; m)
à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
à System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
à System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp; msg)
à System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
à System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
à System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
à System.Windows.Forms.Application.Run(Form mainForm)
à DBGrid.Program.Main() dans C:\Users\raymond\Documents\CSharpBase\DBGrid\DBGrid\Program.cs:ligne 18
à System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
à System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
à Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
à System.Threading.ThreadHelper.ThreadStart_Context(Object state)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
à System.Threading.ThreadHelper.ThreadStart()</ExceptionString></Exception></TraceRecord> |
Partager