Get this error when I try to access the Task Manager page under Admin/Maintenance as Administrator. Not sure if this is a bug, or just an issue with the way I installed/configed, so I posted here. Commented out the this.lblTaskCount.Text line because I was trying to see if the Data Repeater control would bind or not. It wouldn't.

Any ideas on where to look to troubleshoot the below? thanks!!

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 47: // this.lblTaskCount.Text = this.GetText("ADMIN_TASKMANAGER", "HEADER").FormatWith(YafTaskModule.Current.TaskCount.ToString());
Line 48:
Line 49: this.taskRepeater.DataSource = YafTaskModule.Current.TaskManagerSnapshot;
Line 50: this.taskRepeater.DataBind();
Line 51: }

Source File: ..\YAF-v1.9.5.5-BETA-SRC\YetAnotherForum.NET\pages\admin\taskmanager.ascx.cs Line: 49

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
YAF.Pages.Admin.taskmanager.BindData() in ..\YAF-v1.9.5.5-BETA-SRC\YetAnotherForum.NET\pages\admin\taskmanager.ascx.cs:49
YAF.Pages.Admin.taskmanager.Page_Load(Object sender, EventArgs e) in ..\YAF-v1.9.5.5-BETA-SRC\YetAnotherForum.NET\pages\admin\taskmanager.ascx.cs:93
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

  •  Jaben
  • 100% (Exalted)
  • YAF Developer
I think it's because you're missing the YafTaskModule in your web.config. Granted, it could probably say that instead of that random exception.
That was it; notification emails flooded in once I updated those references in the web.config. thanks so much!
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
Sure. Fixed this problem in v1.9.5.5 final.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved