Copied to clipboard

Flag this post as spam?

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


  • Tom Martin 8 posts 28 karma points
    Oct 09, 2013 @ 16:42
    Tom Martin
    0

    No HttpContext in base REST extensions

    Hello,

    I am using Umbraco 4.11.1 and using rest extensions. One of my classes works fine and is accessible. The other type in the same assembly is not (internal 500 error). This appears to be due to the fact that it is using HttpContext as it needs to store items in the Session. (If I comment this HttpContext accessing code out, it is fine).

    Does anyone know why this is not working? How can I make the session available to this class?

    Thanks

    Tom

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Oct 09, 2013 @ 17:02
  • Tom Martin 8 posts 28 karma points
    Oct 09, 2013 @ 17:11
    Tom Martin
    0

    Hello,

    from what I can see the suggestions range from inheriting IRequiresSessionState , which I have tried but made no diference, to adding runAllManagedModulesForAllRequests="True", in the web.config (already there so not making a differnece) to the suggestion being this was fixed in Umbraco 4.5+ (I am on 4.11.1) S

    ..So still stumped!

    Thanks

    Tom

Please Sign in or register to post replies

Write your reply to:

Draft