Server Error in '/' Application.

Cannot find column 7.

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.IndexOutOfRangeException: Cannot find column 7.

Source Error:


Line 747: } else { Line 748: Line 749: row[j] = colText; Line 750: } Line 751: } else {

Source File: C:\Users\Administrator\Documents\afghan-dic-Sharepoint-SearchApp\afghan-dic-www\SearchApp.aspx.cs    Line: 749

Stack Trace:


[IndexOutOfRangeException: Cannot find column 7.] System.Data.DataColumnCollection.get_Item(Int32 index) +113 AfghanDic.SearchApp.buildTable(SPListItemCollection listItem, Guid[] guid) in C:\Users\Administrator\Documents\afghan-dic-Sharepoint-SearchApp\afghan-dic-www\SearchApp.aspx.cs:749 AfghanDic.SearchApp.<searchButton_Click>b__86_0() in C:\Users\Administrator\Documents\afghan-dic-Sharepoint-SearchApp\afghan-dic-www\SearchApp.aspx.cs:469 Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode) +184 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param) +410 Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode) +87 AfghanDic.SearchApp.Page_Load(Object sender, EventArgs e) in C:\Users\Administrator\Documents\afghan-dic-Sharepoint-SearchApp\afghan-dic-www\SearchApp.aspx.cs:408 System.Web.UI.Control.OnLoad(EventArgs e) +108 System.Web.UI.Control.LoadRecursive() +90 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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