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 175:                {
Line 176:                 <div id="grid" class="scrollme">
Line 177:                     @grid.GetHtml(
Line 178:                     mode: WebGridPagerModes.All,
Line 179:                     tableStyle: "table table-striped table-condensed table-responsive table-hover",

Source File: C:\inetpub\wwwroot\UAEERF.ae\en\Content\Endurance\RideInfo.cshtml    Line: 177

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_en_Content_Endurance_RideInfo_cshtml.Execute() in C:\inetpub\wwwroot\UAEERF.ae\en\Content\Endurance\RideInfo.cshtml:177
   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