I have installed YAF and managed to get everything up and running. I'm using two databases because the solution is to be integrated into an existing site. I've copied my membership, role providers from the working site and authentication now seems to work. However, there seems to be a problem with the profiles, or something. I get an error message when I try to save the host settings, ditto for changing profiles online and when posting a message (even tho the message posts correctly).

Here's my config settings;

<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="site" />
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="site" />
<roleManager enabled="true">
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="site" />
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="site" />

and here's the error;

Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
at YAF.Pages.profile.SetupUserProfileInfo(Int32 userID, MembershipUser user, CombinedUserDataHelper userData, String userDisplayName)
at YAF.Pages.profile.BindData()
at YAF.Pages.profile.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

  •  bbobb
  • 100% (Exalted)
  • YAF Developer
You should tell your profile provider about field names in a manner.
Hi -

Thank you for responding, what field names do I need to add and how should this be done?

All the best,


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

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved