YAFLogo

Palos
  • Palos
  • 56.6% (Neutral)
  • YAF Camper Topic Starter
14 years ago
How do I use the Log in Authentication of YAF (Yet Another Forum) 1.9.4 in my current project?

The reason why I am asking is that I made yaf forum as my subfolder in my project and I still have 3 other folders other than that named Students, Teacher and Administrator. All I want to achieve is to validate my users using the yaf login having the:

Student role = Student Folder Access and Yaf forum Registered role only

Admin role = Admin Folder Access and yaf forum Admin role only

Teacher role = Teacher Folder Access and yaf forum Moderator only

I hope someone could help me achieve this kind of thing. Any advice and suggestion will be highly sought.

GUIDE ME PLEASE 😕

Sponsor
whosend
  • whosend
  • 51.8% (Neutral)
  • YAF Forumling
14 years ago

Register fails any changes

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

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

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

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

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

System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +28

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2980

Version Information: Microsoft .NET Framework Version:2.0.50727.4206; ASP.NET Version:2.0.50727.4205

Palos
  • Palos
  • 56.6% (Neutral)
  • YAF Camper Topic Starter
14 years ago
i don't get what your error is.. can you explain it briefly whosend?
antonio
  • antonio
  • 51.2% (Neutral)
  • YAF Forumling
14 years ago
Hi,

I got the YAF 1.9.4 installed. It was working fine and for some reason my user registration is giving me an error.

[NullReferenceException: Object reference not set to an instance of an object.]

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

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

any idea why ?

Antonio

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
14 years ago

Hi,

I got the YAF 1.9.4 installed. It was working fine and for some reason my user registration is giving me an error.

[NullReferenceException: Object reference not set to an instance of an object.]

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

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

any idea why ?

Antonio

antonio wrote:

Is EnableDisplayName selected in your Host Settings?

antonio
  • antonio
  • 51.2% (Neutral)
  • YAF Forumling
14 years ago
Hi Jaben,

I think I figure it out. In my case I reduced the AppPool because I have a bigger website running in the same server. The AppPool did not have enough memory to process the data from the registration form. I changed the from 1GB to 2GB memory limit. It worked for me.

I believe that the way Y.A.F. set the website up make the AppPool request to much memory and IIS could not handle to recycle it.

This solution is peculiar to my installation, please check your SQL Server and other variables involved on the registration process.

regards,

Antonio