Copied to clipboard

Flag this post as spam?

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


  • Genc Kastrati 86 posts 401 karma points
    Nov 07, 2019 @ 11:59
    Genc Kastrati
    0

    Html.CachedPartial on Umbraco 8

    Hi, I am working on migrating from 7 to 8 and have a Document Type called Standard that has a simple chtml template. For some reason I cannot use the CachedPartial anymore and I get an error when using this line of code:

    @Html.CachedPartial("Footer-JS", Model, 3600)

    Error message:

    HtmlHelper< Standard > does not contain a definition for CachedPartial and no accessible extension method CachedPartial accepting a first argument of type HtmlHelper

    I suspect it is something very simple I am missing. I did see this post but that didn't work: https://our.umbraco.com/forum/umbraco-8/96795-cachedpartial-with-v8

    Thank you for any help! genc

  • Genc Kastrati 86 posts 401 karma points
    Nov 07, 2019 @ 13:56
    Genc Kastrati
    100

    I managed to get somewhere. For some strange reasion the web.config in the ~/Views folder was empty.

Please Sign in or register to post replies

Write your reply to:

Draft