YAFLogo

BWG
  • BWG
  • 100% (Exalted)
  • YAF Lover Topic Starter
2 months ago
Hi,

I'm seeing the following error when users try to register on my forum, YAF 3.1.8 .

Any idea what the cause is? (I've not had chance to try debugging yet)

Object reference not set to an instance of an object.

at YAF.Core.Model.UserRepositoryExtensions.AspNet(IRepository`1 repository, Int32 boardId, String userName, String displayName, String email, String providerUserKey, Boolean isApproved, User existingUser) in C:'inetpub'wwwroot'YAFNET_3_1_8_source'yafsrc'YAF.Core'Model'UserRepositoryExtensions.cs:line 555
at YAF.Core.Helpers.AspNetRolesHelper.CreateForumUser(AspNetUsers user, String displayName, Int32 pageBoardID) in C:'inetpub'wwwroot'YAFNET_3_1_8_source'yafsrc'YAF.Core'Helpers'AspNetRolesHelper.cs:line 111
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
2 months ago
Quote:

Any idea what the cause is? (I've not had chance to try debugging yet)



Yes the error thrown when your board dont have any rank with the Start Flag set. Atleast one rank in your board needs to be the start Rank.
BWG
  • BWG
  • 100% (Exalted)
  • YAF Lover Topic Starter
2 months ago
Originally Posted by: tha_watcha 

Quote:

Any idea what the cause is? (I've not had chance to try debugging yet)



Yes the error thrown when your board dont have any rank with the Start Flag set. Atleast one rank in your board needs to be the start Rank.



Thanks - that was the problem. 👍
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
2 months ago
Originally Posted by: BWG 

Originally Posted by: tha_watcha 

Quote:

Any idea what the cause is? (I've not had chance to try debugging yet)



Yes the error thrown when your board dont have any rank with the Start Flag set. Atleast one rank in your board needs to be the start Rank.



Thanks - that was the problem. 👍



I added an error log describing the issue, if the error occurs.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button