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?
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.
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!
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.
is working on a reply...