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 26: 	templateBuilder.Append(Utils.ObjectToStr(category_title));
Line 27: 	templateBuilder.Append("-");
Line 28: 	if (cur_cate.seo_title!="")
Line 29: 	{
Line 30: 	templateBuilder.Append(Utils.ObjectToStr(cur_cate.seo_title));

Source File: d:\ShiNiu2017\aspx\main\news_detail.aspx    Line: 28

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.aspx_main_news_detail_aspx.OnInit(EventArgs e) in d:\ShiNiu2017\aspx\main\news_detail.aspx:28
   System.Web.UI.Control.InitRecursive(Control namingContainer) +165
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1838


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