Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Omair Azhar 1 post 71 karma points
    Aug 06, 2017 @ 18:16
    Omair Azhar
    0

    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.enter image description here

    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.

  • Tobias Klika 101 posts 570 karma points c-trib
    Aug 08, 2017 @ 10:05
    Tobias Klika
    0

    The methods for querying (like Ancestors()) are extension methods and located in the Umbraco.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.

Please Sign in or register to post replies

Write your reply to:

Draft