Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
DataTokens must contain an 'umbraco-doc-request' key with a PublishedContentRequest object
My custom contorller is inherited to RenderMvcController. Getting error on var profile = Umbraco.TypedContent(memberId)
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
var umbracoHelper = new UmbracoHelper(UmbracoContext.Current); var profile = umbracoHelper.TypedContent(memberId);
and its worked. but i dont want to do it in my whole project because there are too many custom controllers.
Yasir
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.