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: 'IPublishedContent' does not contain a definition for 'DocumentTypeAlias' and no accessible extension method 'DocumentTypeAlias' accepting a first argument of type 'IPublishedContent' could be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 155:            {
Line 156:
Line 157:                System.Collections.Generic.List<IPublishedContent> childNodes = node.Children(c => (c.IsVisible()) && (c.DocumentTypeAlias.Equals(equipmentDocType, System.StringComparison.OrdinalIgnoreCase))).OrderBy(x => x.Name).ToList(); //&& c.Value("SiteType").ToString() == "Power").ToList();
Line 158:
Line 159:                <li>

Source File: C:\inetpub\wwwroot\Barlow\Views\ProductEquipment.cshtml    Line: 157







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