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 44: 		
Line 45: 			//Utils.AddToLog("â",Session["ModFuncMix"].ToString().Split('|')[2].ToString());
Line 46: 		  var LinkDuAn = Library.Business.Cls_Portfolios_Translation.converDataRow_To_Object(Library.Business.Cls_Portfolios_Translation.getDataTable_With_LanguageCode_ID_Portfolio(Utils.Lang(), Convert.ToInt32(Session["ModFuncMix"].ToString().Split('|')[2].ToString())).Rows[0]).Link_SEO;
Line 47: 		link = "https://anlocdien.vn/"+LinkDuAn+"/";
Line 48: 	

Source File: c:\Source\anlocdien.vn\themes\default\modules\portfolios\blocks\detail2.ascx.cs    Line: 46

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   themes_realestate_modules_portfolios_blocks_detail2.Page_Init(Object sender, EventArgs e) in c:\Source\anlocdien.vn\themes\default\modules\portfolios\blocks\detail2.ascx.cs:46
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnInit(EventArgs e) +95
   System.Web.UI.UserControl.OnInit(EventArgs e) +83
   System.Web.UI.Control.InitRecursive(Control namingContainer) +139
   System.Web.UI.Control.InitRecursive(Control namingContainer) +312
   System.Web.UI.Control.InitRecursive(Control namingContainer) +312
   System.Web.UI.Control.InitRecursive(Control namingContainer) +312
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +185
   System.Web.UI.ControlCollection.Add(Control child) +86
   MasterPage.Page_Init(Object sender, EventArgs e) in c:\Source\anlocdien.vn\MasterPage.master.cs:935
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnInit(EventArgs e) +95
   System.Web.UI.UserControl.OnInit(EventArgs e) +83
   System.Web.UI.Control.InitRecursive(Control namingContainer) +139
   System.Web.UI.Control.InitRecursive(Control namingContainer) +312
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +408


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