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):
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
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):
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
Anyone? I'm hoping this is an easy one for someone who knows .....
is working on a reply...