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 194:        }
Line 195:        if (strTag.Length > 0) strTagFooter = string.Format("<div class=\"item-tag-footer\"><span>Tag quan tâm: </span> {0}</div>", strTag.ToString().TrimEnd().TrimEnd(','));
Line 196:        KeySEO = string.Format("{0},{1}", drSEO["Title"], drSEO["Link"].ToString().Replace("-", " "));
Line 197:
Line 198:        switch (strOpStylePage)

Source File: c:\HostingData\Web\sanhangchinhhang.vn\Index.aspx.cs    Line: 196

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Index.GetDataSEO() in c:\HostingData\Web\sanhangchinhhang.vn\Index.aspx.cs:196
   ASP.index_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in c:\HostingData\Web\sanhangchinhhang.vn\Index.aspx:5
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +116
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   Index.Render(HtmlTextWriter writer) in c:\HostingData\Web\sanhangchinhhang.vn\Index.aspx.cs:30
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +78
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8752


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