YAFLogo

cascadian
  • cascadian
  • 65% (Friendly)
  • YAF Camper Topic Starter
2011-02-17T18:21:40Z
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

Sponsor
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
2011-02-18T00:45:05Z
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.
UserPostedImage 
cascadian
  • cascadian
  • 65% (Friendly)
  • YAF Camper Topic Starter
2011-02-18T16:29:01Z
That was it; notification emails flooded in once I updated those references in the web.config. thanks so much!
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
2011-02-18T16:59:09Z
Sure. Fixed this problem in v1.9.5.5 final.
UserPostedImage