Server Error in '/' Application. --------------------------------------------------------------------------------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 the exception can be identified using the exception stack trace below. Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] webShow.userinformation.setTB(UserInfo userinfo) in H:\Auction\919\h\Auction\webShow\userinformation.aspx.cs:235 webShow.userinformation.Page_Load(Object sender, EventArgs e) in H:\Auction\919\h\Auction\webShow\userinformation.aspx.cs:98 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Control.LoadRecursive() +47 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 webShow.userinformation.setTB(UserInfo userinfo) in H:\Auction\919\h\Auction\webShow\userinformation.aspx.cs:235 这行对应的代码 curretntUser=(UserInfo)Session["currentUser"]; this.userNameTB.Text = userinfo.Username;应该是session东西丢了吧 怎么解决啊 有人知道没有
--------------------------------------------------------------------------------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 the exception can be identified using the exception stack trace below. Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
webShow.userinformation.setTB(UserInfo userinfo) in H:\Auction\919\h\Auction\webShow\userinformation.aspx.cs:235
webShow.userinformation.Page_Load(Object sender, EventArgs e) in H:\Auction\919\h\Auction\webShow\userinformation.aspx.cs:98
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
webShow.userinformation.setTB(UserInfo userinfo) in H:\Auction\919\h\Auction\webShow\userinformation.aspx.cs:235
这行对应的代码
curretntUser=(UserInfo)Session["currentUser"];
this.userNameTB.Text = userinfo.Username;应该是session东西丢了吧 怎么解决啊 有人知道没有