Server Error in '/sljj' 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:         B_Article.DAL.ClickNum(ID); // 点击
Line 68:         M = B_Article.DAL.GetByKey(ID);
Line 69: 		if(M.verify==""||M.verify=="未审核")
Line 70: 			FunPub.alertTourl("没有权限!","list_yq.aspx?tid=212",Page);
Line 71: 		else{

Source File: e:\sljj2018\sljj\Article.aspx.cs    Line: 69

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Article1.bind(Int32 ID) in e:\sljj2018\sljj\Article.aspx.cs:69
   Article1.Page_Load(Object sender, EventArgs e) in e:\sljj2018\sljj\Article.aspx.cs:18
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +24
   System.Web.UI.Control.LoadRecursive() +70
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3063


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