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 34:         
Line 35:         ArticleEntity articleEntity = ArticleBiz.GetArticleByUrlName(_title);
Line 36:         if (articleEntity.ArticleID > 0)
Line 37:         {
Line 38:             Id = articleEntity.ArticleID;

Source File: c:\webspace\5soffice.com.vn\httpdocs\Controls\Article\ArticleDetail.ascx.cs    Line: 36

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Controls_Article_ArticleDetail.BindingArticleDetail() in c:\webspace\5soffice.com.vn\httpdocs\Controls\Article\ArticleDetail.ascx.cs:36
   Controls_Article_ArticleDetail.Page_Load(Object sender, EventArgs e) in c:\webspace\5soffice.com.vn\httpdocs\Controls\Article\ArticleDetail.ascx.cs:26
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Control.LoadRecursive() +161
   System.Web.UI.Control.LoadRecursive() +161
   System.Web.UI.Control.LoadRecursive() +161
   System.Web.UI.Control.LoadRecursive() +161
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784


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