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 28:                 string sqlMGG = MyStaticData.SQLLoadMaGiamGia(t.idGianHang, idKH, Loai);
Line 29:                 DataTable tbMGG = Connect.GetTable(sqlMGG);
Line 30:                 if (tbMGG.Rows.Count > 0)
Line 31:                 {
Line 32:                     //htmlct += "<div class='shopInfoOnWap_3US1' style='display:block'>";

Source File: c:\inetpub\wwwroot\PMYumo\Views\TaiKhoan\CaNhanMobile.aspx.cs    Line: 30

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   View_User_User.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\PMYumo\Views\TaiKhoan\CaNhanMobile.aspx.cs:30
   System.Web.UI.Control.OnLoad(EventArgs e) +102
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1380


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