Copied to clipboard

Flag this post as spam?

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


  • Drew Mayo 27 posts 128 karma points
    Apr 07, 2023 @ 16:19
    Drew Mayo
    0

    NullReferenceException within Umbraco.Web.PublishedCache.NuCache

    All I'm seeing an error coming from NuCache in Umbraco 8.18.7. Here's a screen shot (with some edited out):

    enter image description here

    The query that triggers this error from my code is: var privacyPolicy = PublishedContentQuery.ContentAtXPath("//PrivacyPolicy").FirstOrDefault();

    When developing on localhost the query runs fine. It's when it gets to a QA server that it throws the exception. I've also brought the QA web.config to localhost and tried it and it also works fine. I've tried with several documents with the same result. I've also experimented by moving the query to other places in the code just to try it out and I get the same result.

    I've also tried deleting the NuCache files on my QA server as well as refreshing the AppPool and I get the same error. I could definitely use some suggestions. Thanks in advance

  • Drew Mayo 27 posts 128 karma points
    Apr 12, 2023 @ 18:26
    Drew Mayo
    0

    Anyone? I'm hoping this is an easy one for someone who knows .....

Please Sign in or register to post replies

Write your reply to:

Draft