Session state in IE not working RRS feed

  • Question

  • Hello All,

    I run into very strange issue.

    I have sharepoint 2013 site and it's migrated from the 2010 environment.

    I have custom task page for accessing the task data

    Code is something like this string strSessionValue =Session["TaskPage"].ToString();

    The code is working fine with the crome and Mozilla but in the Internet explorer its giving the error "object reference is not set to an instance an object"

    This error is in my pre-Production environment.This code is working well for the development environment.

    I don't find any solution so please help me in this.

    Thanks swapnil.


    Tuesday, September 22, 2015 10:36 AM


  • Hi,

    Please check whether turn on the session state service in your production environment.


    Modify the code as below:

     string strSessionValue ="";
    	strSessionValue =Session["TaskPage"].ToString();
    	// set the session value

    Best Regards,


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Proposed as answer by Patrick_Liang Wednesday, September 30, 2015 9:33 AM
    • Marked as answer by Patrick_Liang Friday, October 2, 2015 12:43 PM
    Friday, September 25, 2015 2:30 AM