I am unable to install application i am getting following error while installing from VS 2015 - I don't want to use WebMatrix.
Error CS1061 'IPublishedContent' does not contain a definition for 'Ancestors' and no extension method 'Ancestors' accepting a first argument of type 'IPublishedContent' could be found (are you missing a using directive or an assembly reference?) UmbracoCms.7.6.4
Umbraco Installation Error
I am unable to install application i am getting following error while installing from VS 2015 - I don't want to use WebMatrix.
Error CS1061 'IPublishedContent' does not contain a definition for 'Ancestors' and no extension method 'Ancestors' accepting a first argument of type 'IPublishedContent' could be found (are you missing a using directive or an assembly reference?) UmbracoCms.7.6.4
Please fix the setup asap.
The methods for querying (like
Ancestors()
) are extension methods and located in theUmbraco.Core.Models
assembly. Therefore you have to reference it.Just write
@using Umbraco.Core.Models
above@inherits ...
in the first line and you have them available in your code.is working on a reply...