YAFLogo

MarkD
  • MarkD
  • 52.4% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
I installed YAF to test without problem... made a lot of test posts, etc. I then blew away the database, moved the site to a new folder and updated IIS, and I re-ran the /install pages, I registered one new user (using the registration pages) and have made several posts. Now, however, I am trying to register a second user and I'm getting this exception... help!

Thanks,

Mark

The URL: /default.aspx?g=register

Server Error in '/' Application.

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

YAF.Pages.register.CreateUserWizard1_CreatingUser(Object sender, LoginCancelEventArgs e) +248

System.Web.UI.WebControls.CreateUserWizard.OnCreatingUser(LoginCancelEventArgs e) +108

System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +84

System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +102

System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +418

System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +161

System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +19

System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37

System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +118

System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +166

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) +1565

Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3614

Sponsor
MarkD
  • MarkD
  • 52.4% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
So, being impatient... I created Yet Another New Installation of Yet Another Forum... and I did pretty much what I did the other day... but in a *slightly* different order.

For the Guest account I unchecked the "Is Approved" checkbox before creating my first user account via the self-registration form. And I got the exception! I checked "Is Approved" back on and now I can register.

Is this by design?! I would prefer not to have a Guest account at all. Since I don't especially want to redo everything Yet Another Time 🙂 do anybody know if I should just delete the Guest account instead, or must it remain active for some reason?

Mark

Underground
14 years ago
What about changing the forum settings, that only registered members can enter/read the forum?

Isn't that an option?

But I don't think you can delete the quest account, because how do you register? I mean, when you first enter the site/forum, you are....someone? right? So, you are a guest. This guest can register.

So, the solution is to set the forum rights in a way that quest cannot do much but register.


My site containing the YAF forum: Globalcaching.eu 
MarkD
  • MarkD
  • 52.4% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
I did check the box to "Require User Login", and I can't login with the Guest account. But is this only because I don't know the password, or because the Guest account is never going to be able to login with "Require User Login" set? If I found some documentation about this I would feel better. 🙂
MarkD
  • MarkD
  • 52.4% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
Note to the programmers behind this... I see that I cannot delete or edit the Guests role... how about preventing idiots like me from disabling/deleting the Guest user since I presume this would create big problems? Regardless... thanks for this great product. 🙂
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
14 years ago

Note to the programmers behind this... I see that I cannot delete or edit the Guests role... how about preventing idiots like me from disabling/deleting the Guest user since I presume this would create big problems? Regardless... thanks for this great product. =)

MarkD wrote:

Good suggestion... yeah, just an oversight. It's been fixed to disallow that option.