1
Vote

Object reference not set to an instance of an object

description

After deploying when I try and browe I get the following error message, any ideas on why would be appreciated
 

Server Error in '/_layouts/SPAlertManager' 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 20: ctx = SPContext.Current;
Line 21: user = ctx.Web.CurrentUser;
Line 22: SPAlertCollection uAlerts = user.Alerts;
Line 23: //alerts for changed data
Line 24: SiteDetails.DataChanged += new SiteOptionsDataChangeHandler(ItemForms_DataChanged);

Source File: c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\SPAlertManager\Default.aspx.cs Line: 22
 
Stack Trace:
 
[NullReferenceException: Object reference not set to an instance of an object.]
_Default.Page_Load(Object sender, EventArgs e) in c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\SPAlertManager\Default.aspx.cs:22
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +33
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1436

Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

comments