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 28: 
Line 29:             Maticsoft.Model.tbl_members model5 = Maticsoft.DAL.mycookie.Get();
Line 30:             if (model5.membersort == 1)
Line 31:             {
Line 32:                 Response.Write("<script>alert('你是个人会员,不能发布产品!');window.location.replace('http://www.guojixumu.com/kj/index.aspx');</script>");

Source File: e:\www.guojixumu.com\kj\pubpro.aspx.cs    Line: 30

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   newsite_kj_pubpro.Page_Load(Object sender, EventArgs e) in e:\www.guojixumu.com\kj\pubpro.aspx.cs:30
   System.Web.UI.Control.LoadRecursive() +115
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2909


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237