Copied to clipboard

Flag this post as spam?

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


  • Alan Mac Kenna 147 posts 405 karma points MVP c-trib
    May 15, 2015 @ 21:30
    Alan Mac Kenna
    0

    NullReference Exception generating cache key, empty area

    Hey guys,

    I'm starting to use the the Hybrid Framework and having an issue with the DonutOutputCache.

    I'm not directly using the caching yet but because it is an attribute on the DefaultController it is kicking in and throwing an exception and I'm curious as to why.

    When I return CurrentUmbracoPage from my Controller (which inherits from SurfaceRenderMvcController) a NullReferenceException is thrown from the GenerateKey method in MvcDonutCaching. It's being thrown because the area value is null. See image.

    Has anyone hit this before or can suggest why this is happening?

    Cheers!

  • Alan Mac Kenna 147 posts 405 karma points MVP c-trib
    May 19, 2015 @ 13:11
    Alan Mac Kenna
    1

    For those that are having this issue - the problem was an old version of MvcDonutCaching. It was using an earlier version of MVC. I attached a newer version of MvcDonutCaching to the project and made sure it was using MVC4. This resolved my problem.

Please Sign in or register to post replies

Write your reply to:

Draft