YAFLogo

Posted by: PasseAgora - Saturday, 7 April 2012 01:17:01
Hi, When I try to save (my own or using admin) any profile, I get the following error: Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] YAF.Classes.Data.LegacyDb.LoadFromPropertyValueCollection(SettingsPropertyValueCollection collection) +225 YAF.Classes.Data.LegacyDb.SetPropertyValues(Int32 boardId, String appname, Int32 userId, SettingsPropertyValueCollection collection, Boolean dirtyOnly) +222 YAF.Controls.EditUsersProfile.UpdateUserProfile(String userName) +1826 YAF.Controls.EditUsersProfile.UpdateProfile_Click(Object sender, EventArgs e) +2145 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +153 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3706 THANKS

Posted by: bbobb - Saturday, 7 April 2012 12:00:12
Was it a clean install or upgrade? What ASP.NET do you use?

Posted by: PasseAgora - Saturday, 7 April 2012 20:22:04
Hi! Clean install, and I am using .net framework 4.0. Thanks

Posted by: bbobb - Sunday, 8 April 2012 09:52:32
Can't be reproduced with YAF standard ASP.NET providers.

Posted by: PasseAgora - Sunday, 8 April 2012 19:35:41
Do you have a sample solution with yaf configured so I can try to reproduce the error?

Posted by: PasseAgora - Wednesday, 11 April 2012 14:12:46
Solved... I was using inheritance in the Profile, which caused me an error. My UserProfile inherting from Yaf User profile didnt work. This fixed:

Posted by: RippleKid - Friday, 22 February 2013 13:28:50
Hi Guys, I have the same issue. [NullReferenceException: Object reference not set to an instance of an object.] YAF.Classes.Data.LegacyDb.LoadFromPropertyValueCollection(SettingsPropertyValueCollection collection) +157 YAF.Classes.Data.LegacyDb.SetPropertyValues(Int32 boardId, String appname, Int32 userId, SettingsPropertyValueCollection collection, Boolean dirtyOnly) +165 YAF.Controls.EditUsersProfile.UpdateUserProfile(String userName) +1694 YAF.Controls.EditUsersProfile.UpdateProfile_Click(Object sender, EventArgs e) +2039 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563 Although I am already inheriting from Yaf.Utils.YafUserProfile. This is a clean install and I have it integrated in a Umbraco 4.9.0 project, using a custom membership provider and profile. Any suggestions on this would be great! Stumped here :\