MichaelKB
  • Posts: 8
  • Joined: 30/05/2018
On a brand new installation, I've tested creating several users and none of them can see their profile page. Some things I've noticed, yaf_UserProfile table is empty, although the yaf_User, yaf_prov_Membership and yaf_prov_Profile tables are populated. Is that by design? I'm using your membership and profile providers with my own custom site. To ME, it looks like an issue of providerkey (guid/nvarchar(64)) trying to be read as an int like the yaf_User key. See the error:

[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14501304
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +172
System.ComponentModel.Int32Converter.FromString(String value, NumberFormatInfo formatInfo) +62
System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) +367

[Exception: 38FF80D3-9818-4090-9AE9-8F64735ECB13 is not a valid value for Int32.]
System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value) +588
YAF.Types.Extensions.ObjectExtensions.ConvertObjectToType(Object value, String type) +91
YAF.Core.UserMembershipHelper.GetMembershipUserByKey(Object providerUserKey) +24

This happens whether I use my own custom signup form or the forum register page.

Any thoughts?
Version 2.2.4.12, .NET Framework 4.6.1.

Thank you!
Michael
Sponsor
tha_watcha
  • Posts: 4080
  • Joined: 06/03/2010
Did you change the Setting for the YAF.ProviderKeyType in the app.config?
UserPostedImage
MichaelKB
  • Posts: 8
  • Joined: 30/05/2018
May you live to be a thousand years old, sir! Thank you!
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