Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ridi 71 posts 103 karma points
    Feb 06, 2011 @ 13:35
    ridi
    0

    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..

  • Lee 1130 posts 3088 karma points
    Feb 06, 2011 @ 18:21
    Lee
    0

    Can you copy and paste the entire error in here please, the screen shot has trimmed off some of the error message

  • ridi 71 posts 103 karma points
    Feb 06, 2011 @ 23:49
    ridi
    0

    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:

    [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
    
  • Lee 1130 posts 3088 karma points
    Feb 07, 2011 @ 07:59
    Lee
    0

    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

    <%@ Register src="~/usercontrols/nForum/includes/MessageBox.ascx" tagname="MessageBox" tagprefix="msg" %>

    In the Contentplaceholder at the top

    <div class="error" id="error" style="display:none;"><a onClick="document.getElementById('error').style.display = 'none'" href="#"><img alt="Remove message" src="/nforum/img/msg/close.png" /></a></div>
    <msg:MessageBox ID="msgBox" ShowCloseButton="true" runat="server" Visible="false" />

    If you have these, then have you changed the logincontrol name? Or anything else to do with the membership?

  • ridi 71 posts 103 karma points
    Jun 17, 2011 @ 16:41
    ridi
    0

    You are right .. a realigned the content structure and it's become normal :)

  • Rory 59 posts 84 karma points
    Jul 03, 2011 @ 18:56
    Rory
    0

    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

    I am using Umbraco 4.7.0 and nForum 1.2.

    Thanks

    Rory

     

     

  • Rory 59 posts 84 karma points
    Jul 03, 2011 @ 18:58
    Rory
    0

    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

  • Tony Bolton 83 posts 109 karma points
    Jan 04, 2012 @ 00:08
    Tony Bolton
    0

    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.

  • William Charlton 171 posts 218 karma points
    Jan 14, 2014 @ 15:18
    William Charlton
    0

    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?

Please Sign in or register to post replies

Write your reply to:

Draft