Not exactly on topic, but for anyone searching, I had the same error after upgrading from v7 to v8, and the code in my RenderMVController was updated to:
var contents = UmbracoContext.Content.GetAtRoot();
but should have been updated to:
var contents = Current.UmbracoContext.Content.GetAtRoot();
DataTokens must contain an 'umbraco-doc-request' key with a PublishedContentRequest object
Hi,
We have updated our project from 7.2.8 to 7.4.3 recently. we are getting error on out custom routes controller and error is
My custom contorller is inherited to RenderMvcController. Getting error on
var profile = Umbraco.TypedContent(memberId)
it looks like umbraco context is not valid here anymore while same code was working in earlier version.
is it bug in Umbraco or new change?
can some one help me?
Just info! for time being i have changed the code like
and its worked. but i dont want to do it in my whole project because there are too many custom controllers.
Yasir
Not exactly on topic, but for anyone searching, I had the same error after upgrading from v7 to v8, and the code in my RenderMVController was updated to:
but should have been updated to:
is working on a reply...