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.Modelsassembly. Therefore you have to reference it.Just write
@using Umbraco.Core.Modelsabove@inherits ...in the first line and you have them available in your code.is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.