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

Source Error:


Line 2:  @{
Line 3:      Layout = "PortfolioMaster.cshtml";
Line 4:      var associatedProjects = Model.Content.Ancestor("portfolioFolder").Descendants().OfTypes("portfolioProjectItem").Where(x => x.GetPropertyValue<IEnumerable<IPublishedContent>>("associatedApplication").Where(a => a.Id == Model.Content.Id).Any());
Line 5:  }
Line 6:  

Source File: C:\inetpub\TAP\TAP\Views\PortfolioApplicationItem.cshtml    Line: 4






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