Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1061: 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'AntiForgeryToken' and no extension method 'AntiForgeryToken' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 56: 							<ul class="horizontal search-container row visible-xs">
Line 57:                                <form action="/istar.asp" method="get">
Line 58: 							   @Html.AntiForgeryToken()
Line 59: 									<input type="hidden" value="29" name="a">
Line 60: 									<input class="form-control square" type="text" name="search" placeholder="Search">

Source File: c:\inetpub\wwwroot\Shared\Custom\_Layout.cshtml    Line: 58






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