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
Hello,
when i tried to set value in session its give me error " object not set instance of reference "
This is my code , when i call this methods it's give me above error
public ActionResult TestSesion() { try { Session["test"] = "test"; string sessionValue = Session["test"].ToString(); } catch (Exception ex) { throw ex; } return null; }
but if i m set session value in .cshtml page its working perfectly ,
please help me solve this issue as soon as possible
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
Session Issue in Surface Controller and Class File
Hello,
when i tried to set value in session its give me error " object not set instance of reference "
This is my code , when i call this methods it's give me above error
but if i m set session value in .cshtml page its working perfectly ,
please help me solve this issue as soon as possible
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.