YAFLogo

PasseAgora
  • PasseAgora
  • 60.8% (Friendly)
  • YAF Camper Topic Starter
12 years ago
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

Sponsor
bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
12 years ago
Was it a clean install or upgrade? What ASP.NET do you use?
PasseAgora
  • PasseAgora
  • 60.8% (Friendly)
  • YAF Camper Topic Starter
12 years ago
Hi!

Clean install, and I am using .net framework 4.0.

Thanks

bbobb
  • bbobb
  • 100% (Exalted)
  • YAF Developer
12 years ago
Can't be reproduced with YAF standard ASP.NET providers.
PasseAgora
  • PasseAgora
  • 60.8% (Friendly)
  • YAF Camper Topic Starter
12 years ago
Do you have a sample solution with yaf configured so I can try to reproduce the error?
PasseAgora
  • PasseAgora
  • 60.8% (Friendly)
  • YAF Camper Topic Starter
12 years ago
Solved...

I was using inheritance in the Profile, which caused me an error. My UserProfile inherting from Yaf User profile didnt work.

This fixed:

RippleKid
12 years ago
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 :\