Hi, I am having a problem with login and nForum. I've added nForum to an existing website that has it's own user database (edited web.config provider). If I use the nForum login page, I get an error (see below). If I use my own login page my website works fine, but won't browse to forum category pages (although the forum home page shows that I am logged in ok.)
nForum login error:
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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException:Object reference notset to an instance of an object.] nForum.usercontrols.nForum.membership.Login.OnLoggedIn(Object sender,EventArgs e)in C:\Users\Lee\Documents\MyDropbox\Projects\nForum\nForum\usercontrols\nForum\membership\Login.ascx.cs:20 System.Web.UI.WebControls.Login.OnLoggedIn(EventArgs e)+118 System.Web.UI.WebControls.Login.AttemptLogin()+194 System.Web.UI.WebControls.Login.OnBubbleEvent(Object source,EventArgs e)+101 System.Web.UI.Control.RaiseBubbleEvent(Object source,EventArgs args)+37 System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e)+125 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)+167 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)+10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,String eventArgument)+13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)+36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)+5563
Error when using my own login page then browsing to a forum category page:
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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException:Object reference notset to an instance of an object.] nForum.usercontrols.nForum.ForumTopics.GetTopicsFromCategory()in C:\Users\Lee\Documents\MyDropbox\Projects\nForum\nForum\usercontrols\nForum\ForumTopics.ascx.cs:113 nForum.usercontrols.nForum.ForumTopics.Page_Load(Object sender,EventArgs e)in C:\Users\Lee\Documents\MyDropbox\Projects\nForum\nForum\usercontrols\nForum\ForumTopics.ascx.cs:22 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.Web.UI.Control.OnLoad(EventArgs e)+91 System.Web.UI.Control.LoadRecursive()+74 System.Web.UI.Control.LoadRecursive()+146 System.Web.UI.Control.LoadRecursive()+146 System.Web.UI.Control.LoadRecursive()+146 System.Web.UI.Control.LoadRecursive()+146 System.Web.UI.Control.LoadRecursive()+146 System.Web.UI.Control.LoadRecursive()+146 System.Web.UI.Control.LoadRecursive()+146 System.Web.UI.Control.LoadRecursive()+146 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)+2207
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Hi Lee, I'm really not sure how to go about this. Are there some steps listed somewhere that I can follow? i've struggled in general to run Umbraco through VisualStudio 2010 for debugging purposes.
there is a video on Umbraco TV about debugging with Visual studio and Umbraco, I would highly recommend you watch it - As you create/add more packages and customise Umbraco you will need to know this in case you get more errors
Login not working when using own member database
Hi, I am having a problem with login and nForum. I've added nForum to an existing website that has it's own user database (edited web.config provider). If I use the nForum login page, I get an error (see below). If I use my own login page my website works fine, but won't browse to forum category pages (although the forum home page shows that I am logged in ok.)
nForum login error:
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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Error when using my own login page then browsing to a forum category page:
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:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
I am using Umbraco 4.7.0 and nForum 1.2.
Thanks
Rory
As its a custom integration its best to grab the source, and then debug it and step through the login and see where its causing the error.
http://nforum.codeplex.com/
Hi Lee, I'm really not sure how to go about this. Are there some steps listed somewhere that I can follow? i've struggled in general to run Umbraco through VisualStudio 2010 for debugging purposes.
cheers
Rory
there is a video on Umbraco TV about debugging with Visual studio and Umbraco, I would highly recommend you watch it - As you create/add more packages and customise Umbraco you will need to know this in case you get more errors
http://umbraco.com/help-and-support/video-tutorials/introduction-to-umbraco/developer-introduction/debugging?redirected=true
I wouldn't be able to develop with Umbraco without know the above :(
is working on a reply...