YAFLogo

MichaelKB
  • MichaelKB
  • 54.8% (Neutral)
  • YAF Forumling Topic Starter
5 years ago
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
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
5 years ago
Did you change the Setting for the YAF.ProviderKeyType in the app.config?
MichaelKB
  • MichaelKB
  • 54.8% (Neutral)
  • YAF Forumling Topic Starter
5 years ago
May you live to be a thousand years old, sir! Thank you!
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