Server Error in '/' Application.

Column "Name" does not exist.

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: Column "Name" does not exist.

Source Error:


Line 168:                {
Line 169:                 <div id="grid">
Line 170:                     @grid.GetHtml(
Line 171:                     mode: WebGridPagerModes.All,
Line 172:                     tableStyle: "table table-striped table-condensed table-responsive table-hover",

Source File: C:\inetpub\wwwroot\UAEERF.ae\ar\Content\Endurance\RideInfo.cshtml    Line: 170

Stack Trace:


[InvalidOperationException: Column "Name" does not exist.]
   System.Web.Helpers.WebGrid.EnsureColumnIsSortable(IEnumerable`1 columns) +428
   System.Web.Helpers.WebGrid.GetHtml(String tableStyle, String headerStyle, String footerStyle, String rowStyle, String alternatingRowStyle, String selectedRowStyle, String caption, Boolean displayHeader, Boolean fillEmptyRows, String emptyRowCellValue, IEnumerable`1 columns, IEnumerable`1 exclusions, WebGridPagerModes mode, String firstText, String previousText, String nextText, String lastText, Int32 numericLinksCount, Object htmlAttributes) +309
   ASP._Page_ar_Content_Endurance_RideInfo_cshtml.Execute() in C:\inetpub\wwwroot\UAEERF.ae\ar\Content\Endurance\RideInfo.cshtml:170
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors) +99
   System.Web.WebPages.WebPage.ExecutePageHierarchy() +182
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase httpContext) +142


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