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 not set to an instance of an object.]
nForum.usercontrols.nForum.membership.Login.OnLoginError(Object sender, EventArgs e) in C:\Users\Lee\Documents\My Dropbox\Projects\nForum\nForum\usercontrols\nForum\membership\Login.ascx.cs:14
System.Web.UI.WebControls.Login.OnLoginError(EventArgs e) +118
System.Web.UI.WebControls.Login.AttemptLogin() +270
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
I would suspect you have removed the messabox usercontrol from the forum master page, as when the OnLoginError fires all it does is look for the messagebox and display the error.
Make sure you have the following in your master / forum master template
Hi, I am having the same problem, however the only change I've made is that 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 not set to an instance of an object.]
nForum.usercontrols.nForum.membership.Login.OnLoggedIn(Object sender, EventArgs e) in C:\Users\Lee\Documents\My Dropbox\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 not set to an instance of an object.]
nForum.usercontrols.nForum.ForumTopics.GetTopicsFromCategory() in C:\Users\Lee\Documents\My Dropbox\Projects\nForum\nForum\usercontrols\nForum\ForumTopics.ascx.cs:113
nForum.usercontrols.nForum.ForumTopics.Page_Load(Object sender, EventArgs e) in C:\Users\Lee\Documents\My Dropbox\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
Actually, on re-reading the original post, the problem is not the same. My problem happens on log in with the correct credentials (not the wrong ones).
I know this is an old topic,but I had exactly the same issue just today (integrating nForum into an existing site) so just in case someone has the same problem.
The problem was my own registration process assigned my own member type, but did not have the properties that are attached to the 'Forum User' member type (such as "Is admin", "Is banned" etc).
It was just a case of adding those properties to my own existing member type and problem was sorted.
Error when login is failed nForum
Dear Lee, your forum is awesome...! However
i am trying to integrate your forum into existing starter kit..by arrenging your forum inside protected site like picture below
The register and login is located outside your forum to make sure only authorized acces can see the content
The problem is happen when we insert wrong value in register and login (e.g. wrong login password). The error come up like this
Any advise, really appreciated..
Can you copy and paste the entire error in here please, the screen shot has trimmed off some of the error message
Hi Lee, Here is it
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:
I would suspect you have removed the messabox usercontrol from the forum master page, as when the OnLoginError fires all it does is look for the messagebox and display the error.
Make sure you have the following in your master / forum master template
At the top under the @Master directive
In the Contentplaceholder at the top
If you have these, then have you changed the logincontrol name? Or anything else to do with the membership?
You are right .. a realigned the content structure and it's become normal :)
Hi, I am having the same problem, however the only change I've made is that 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
Actually, on re-reading the original post, the problem is not the same. My problem happens on log in with the correct credentials (not the wrong ones).
Cheers
Rory
I know this is an old topic,but I had exactly the same issue just today (integrating nForum into an existing site) so just in case someone has the same problem.
The problem was my own registration process assigned my own member type, but did not have the properties that are attached to the 'Forum User' member type (such as "Is admin", "Is banned" etc).
It was just a case of adding those properties to my own existing member type and problem was sorted.
HTH.
So if we have any other Member types they all have to have the nForum member properties?
All of them or just some?
Sounds like a bug to me - Lee?
is working on a reply...