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 91:         PopulateDropDowns();
Line 92:         DataRow row = Utility.GetUserInfo(HttpContext.Current.User.Identity.Name);
Line 93:         long profileStatus = (long)row["ProfileStatus"];
Line 94:         Session["profileStatus"] = profileStatus;
Line 95:         int view = 0;

Source File: c:\Projects\RendezTrue\EditProfile.aspx.cs    Line: 93

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   EditProfile.Page_Init(Object sender, EventArgs e) in c:\Projects\RendezTrue\EditProfile.aspx.cs:93
   System.Web.UI.Control.OnInit(EventArgs e) +107
   System.Web.UI.Page.OnInit(EventArgs e) +16
   System.Web.UI.Control.InitRecursive(Control namingContainer) +172
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +490


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