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 62 posts 286 karma points
    6 days ago
    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 62 posts 286 karma points
    6 days ago
    Genc Kastrati
    0

    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