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?
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
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
Tom,
See http://our.umbraco.org/forum/core/general/9177-HttpContextUser-is-null-in-base-httpmodule but i think it should work now? also see http://our.umbraco.org/forum/developers/api-questions/9508-SessionID-within-base
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
is working on a reply...