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 181:
Line 182:                UserPermisionInfo upi   = (UserPermisionInfo)Session["UserPermissionInfo"];
Line 183:                if (upi.Events >= 1)
Line 184:                {
Line 185:                    //if desc & !file show link else nothing

Source File: d:\inetpub\vhosts\mtc3-2879.package\dorado-sbc.co.za\wwwroot\Events.aspx.cs    Line: 183

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   Events.loadEventsFor(Int32 year) in d:\inetpub\vhosts\mtc3-2879.package\dorado-sbc.co.za\wwwroot\Events.aspx.cs:183
   Events.loadData(Boolean showAll) in d:\inetpub\vhosts\mtc3-2879.package\dorado-sbc.co.za\wwwroot\Events.aspx.cs:86
   Events.Page_Load(Object sender, EventArgs e) in d:\inetpub\vhosts\mtc3-2879.package\dorado-sbc.co.za\wwwroot\Events.aspx.cs:22
   System.Web.UI.Control.OnLoad(EventArgs e) +98
   System.Web.UI.Control.LoadRecursive() +153
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4081


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