startstop.me
  • Posts: 2
  • Joined: 08/01/2012
😞

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
  • Posts: 1558
  • Joined: 21/10/2008
You should tell your profile provider about field names in a manner.
startstop.me
  • Posts: 2
  • Joined: 08/01/2012
Hi -

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

All the best,

Phil.
Forum Jump  
  • You cannot post new topics in this forum.
  • You cannot reply to topics in this forum.
  • You cannot delete your posts in this forum.
  • You cannot edit your posts in this forum.
  • You cannot create polls in this forum.
  • You cannot vote in polls in this forum.

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