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 463:                    {
Line 464:                        ltrBread.Text += "<li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\"><a itemprop=\"item\" href=\"/" + Session["lang"] + "/" + Common.FormatAsLink(dt.Rows[0]["parentTitle2"].ToString()) + "/\"><span itemprop=\"name\">" + dt.Rows[0]["parentTitle2"] + "</span></a><meta itemprop=\"position\" content=\"" + (i + 1).ToString() + "\" /> ></li>";
Line 465:                        ltrBread.Text += "<li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\"><span itemprop=\"name\">" + Request.QueryString["data"].ToString() + "-" + Request.QueryString["volt"].ToString() + "-1</span><meta itemprop=\"position\" content=\"" + (i + 2).ToString() + "\" /></li>";
Line 466:                    }
Line 467:                    else

Source File: c:\inetpub\vhosts\teksan.com\httpdocs\list.aspx.cs    Line: 465

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   list.DataDetail() in c:\inetpub\vhosts\teksan.com\httpdocs\list.aspx.cs:465
   list.Page_Init(Object sender, EventArgs e) in c:\inetpub\vhosts\teksan.com\httpdocs\list.aspx.cs:200
   System.Web.UI.Control.OnInit(EventArgs e) +107
   System.Web.UI.Page.OnInit(EventArgs e) +16
   System.Web.UI.Control.InitRecursive(Control namingContainer) +172
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +490


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