Posted on: 9/1/2012 1:57:28 AM | Views : 450

Hi,
In 1st project, I have assigned a value to the session variable like
Session["sv_userid"] = tb_userid.Text.Trim();

then I call the 2nd project, and within it, I want to see the value of it by referring to it like
lb2_join_dt.Text = "testing" + "xx" + Session["sv_userid"].ToString().Trim();

but then I have got this error from the 2nd project. Why?

Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of ...

Go to the complete details ...