主题:  所有版块的“本版精华”都打不开

东升

职务:普通成员
等级:1
金币:0.0
发贴:7
注册:2005/7/25 10:58:20
#12009/6/17 15:25:24
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:


Line 67: protected void Login()
Line 68: {
Line 69: ActiveUBB.bbs b = new ActiveUBB.bbs();
Line 70: MyUser myuser = UserObject;
Line 71: int tmpUserID = MyBBS.GetBBSInfo(myuser.Identity,b.ConnectionString);


Source File: e:\WebSite\5DM_bbs\Controls\PassportBar.ascx.cs Line: 69

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
ActiveUBB.bbs.Init() +15933
ActiveUBB.bbs..ctor() +128
Controls_PassportBar.Login() in e:\WebSite\5DM_bbs\Controls\PassportBar.ascx.cs:69
Controls_PassportBar.OnInit(EventArgs e) in e:\WebSite\5DM_bbs\Controls\PassportBar.ascx.cs:51
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Control.InitRecursive(Control namingContainer) +198
System.Web.UI.Control.InitRecursive(Control namingContainer) +198
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433