Server Error in '/' Application.

DataTable internal index is corrupted: '5'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: DataTable internal index is corrupted: '5'.

Source Error:


Line 230:                c.BeginEdit();
Line 231:                c.Depth = root.Depth + 1;
Line 232:                c.EndEdit();
Line 233:            }
Line 234:            ÑîçäàòüÏóòêòÌåíþ(NavigationMenu, c, citem, root.IsFaviconUrlNull() ? null : root.FaviconUrl, root.IsModuleiconUrlNull() ? null : root.ModuleiconUrl, root.IsForegroundColorNull() ? null : root.ForegroundColor, root.IsBackgroundColorNull() ? null : root.BackgroundColor, root.IsBackgroundUrlNull() ? null : root.BackgroundUrl);

Source File: d:\hst\xn80abckci-xnp1a_9ab8a5af\http\Site.master.cs    Line: 232

Stack Trace:


[InvalidOperationException: DataTable internal index is corrupted: '5'.]
   System.Data.RBTree`1.RBInsert(Int32 root_id, Int32 x_id, Int32 mainTreeNodeID, Int32 position, Boolean append) +2104910
   System.Data.RBTree`1.RBInsert(Int32 root_id, Int32 x_id, Int32 mainTreeNodeID, Int32 position, Boolean append) +2106137
   System.Data.Index.RecordStateChanged(Int32 oldRecord, DataViewRowState oldOldState, DataViewRowState oldNewState, Int32 newRecord, DataViewRowState newOldState, DataViewRowState newNewState) +306
   System.Data.DataTable.RecordStateChanged(Int32 record1, DataViewRowState oldState1, DataViewRowState newState1, Int32 record2, DataViewRowState oldState2, DataViewRowState newState2) +135
   System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean suppressEnsurePropertyChanged, Int32 position, Boolean fireEvent, Exception& deferredException) +6010022
   System.Data.DataRow.EndEdit() +105
   SiteMaster.ÑîçäàòüÏóòêòÌåíþ(Menu NavigationMenu, SiteMapRow root, MenuItem item, String FaviconUrl, String ModuleiconUrl, String ForegroundColor, String BackgroundColor, String BackgroundUrl) in d:\hst\xn80abckci-xnp1a_9ab8a5af\http\Site.master.cs:232
   SiteMaster.ÑîçäàòüÏóòêòÌåíþ(Menu NavigationMenu, SiteMapRow root, MenuItem item, String FaviconUrl, String ModuleiconUrl, String ForegroundColor, String BackgroundColor, String BackgroundUrl) in d:\hst\xn80abckci-xnp1a_9ab8a5af\http\Site.master.cs:234
   SiteMaster.ÑîçäàòüÌåíþ(Menu NavigationMenu) in d:\hst\xn80abckci-xnp1a_9ab8a5af\http\Site.master.cs:135
   SiteMaster.Page_Load(Object sender, EventArgs e) in d:\hst\xn80abckci-xnp1a_9ab8a5af\http\Site.master.cs:20
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +52
   System.Web.UI.Control.OnLoad(EventArgs e) +97
   System.Web.UI.Control.LoadRecursive() +61
   System.Web.UI.Control.LoadRecursive() +134
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +693


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4075.0