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 230:            giactive = ""
Line 231:            SQL = "select ROW_NUMBER() OVER(ORDER BY PackageId) aS RowNumber,(PackAmount+Admin_Fee) as TotalAmount,* from TabPackageMaster where packagecategory ='SMART COMBO 25 MATRIX/CBSQ APP' and PackStatus = 1 and Deleted = 0 ORDER BY PackAmount"
Line 232:        ElseIf PMCategory.ToUpper = "$99.00 SPECIALS" Then
Line 233:            rusactive = ""
Line 234:            miactive = ""

Source File: C:\inetpub\wwwroot\22bizssmart\PackageMainList.aspx    Line: 232

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.packagemainlist_aspx.BindProductList() in C:\inetpub\wwwroot\22bizssmart\PackageMainList.aspx:232
   ASP.packagemainlist_aspx.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\22bizssmart\PackageMainList.aspx:122
   System.Web.UI.Control.OnLoad(EventArgs e) +105
   System.Web.UI.Control.LoadRecursive() +67
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3784


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