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 457:        string sql1 = @"Proc_LoadGoiTin 'vip1_pack'";
Line 458:        DataTable table1 = Connect.GetTable(sql1);
Line 459:        if (table1.Rows.Count > 0)
Line 460:        {
Line 461:            for (int i = 0; i < table1.Rows.Count; i++)

Source File: c:\inetpub\vhosts\tungtang.com.vn\tungtang.com.vn\PostDetail.aspx.cs    Line: 459

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   TinDangChiTiet.LoadTinVipDacBiet() in c:\inetpub\vhosts\tungtang.com.vn\tungtang.com.vn\PostDetail.aspx.cs:459
   TinDangChiTiet.Page_Load(Object sender, EventArgs e) in c:\inetpub\vhosts\tungtang.com.vn\tungtang.com.vn\PostDetail.aspx.cs:61
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
   System.Web.UI.Control.OnLoad(EventArgs e) +79
   System.Web.UI.Control.LoadRecursive() +130
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2853


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