startstop.me
2012-01-08T14:28:18Z
😞

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;

<membership>
<providers>
<clear/>
<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" />
</providers>
</membership>
<profile>
<providers>
<clear/>
<add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="site" />
</providers>
</profile>
<roleManager enabled="true">
<providers>
<clear/>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="site" />
<add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="site" />
</providers>
</roleManager>

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)


Sponsor
bbobb
  •  bbobb
  • 100% (Exalted)
  • YAF Developer
2012-01-08T14:45:09Z
You should tell your profile provider about field names in a manner.
startstop.me
2012-01-08T14:53:45Z
Hi -

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

All the best,

Phil.

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