Copied to clipboard

Flag this post as spam?

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


  • Yasir Butt 159 posts 369 karma points
    Jun 29, 2016 @ 10:45
    Yasir Butt
    0

    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

    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)

    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

  • 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.

Please Sign in or register to post replies