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 75:     private void LoadData()
Line 76:     {
Line 77:         DataSet DS = _StudAffairBAL.GetStudTables(FacCode, int.Parse(ddlSection.SelectedValue.ToString()),Request.QueryString["TT"].ToString());
Line 78: 
Line 79:        

Source File: d:\Interface\Elbehery\FacultyTemplate\EStudTables.aspx.cs    Line: 77

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   EStudTables.LoadData() in d:\Interface\Elbehery\FacultyTemplate\EStudTables.aspx.cs:77
   EStudTables.ddlSection_DataBound(Object sender, EventArgs e) in d:\Interface\Elbehery\FacultyTemplate\EStudTables.aspx.cs:72
   System.Web.UI.WebControls.BaseDataBoundControl.OnDataBound(EventArgs e) +125
   EStudTables.FillSectionsData() in d:\Interface\Elbehery\FacultyTemplate\EStudTables.aspx.cs:64
   EStudTables.Page_Load(Object sender, EventArgs e) in d:\Interface\Elbehery\FacultyTemplate\EStudTables.aspx.cs:15
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnLoad(EventArgs e) +107
   System.Web.UI.Control.LoadRecursive() +89
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1606


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