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: CS0117: 'RenderingContext' does not contain a definition for 'IsEditing'

Source Error:


Line 7:  	}
Line 8:  
Line 9:  	if (!RenderingContext.IsEditing && !RenderingContext.IsPreview && Model != null && Model.TargetPage.HasValue)
Line 10: 	{
Line 11: 		if (Model.PermanentRedirect.Value)

Source File: C:\inetpub\wwwroot\MTA.Web.Solr\Views\Redirection.cshtml    Line: 9






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