I have developed a set of asp.net user controls which allow which allow users of the website to, amongst other things, manage their profile. The user controls were working just fine in Umbraco V4.0.2.1 but I am now experiencing problems after upgrading to V4.5.2.
The problem is occurring during the login process. I was using:
Has anyone else experienced this? Or does anyone have any idea what I am doing wrong. I have searched the forum but was unable to find anything relating to this problem.
Member Login Error in User Control
Hi,
I have developed a set of asp.net user controls which allow which allow users of the website to, amongst other things, manage their profile. The user controls were working just fine in Umbraco V4.0.2.1 but I am now experiencing problems after upgrading to V4.5.2.
The problem is occurring during the login process. I was using:
Member.GetMemberFromLoginNameAndPassword(Me.txtLoginUsername.Text, Me.txtLoginPassword.Text)
to log the user in but after the upgarde I got a message saying that this method is now obsolete. I, therefore, used the suggested method which is:
System.Web.Security.Membership.ValidateUser(Me.txtLoginUsername.Text, Me.txtLoginPassword.Text)
but this produces the following error:
[NullReferenceException: Object reference not set to an instance of an object.]
umbraco.cms.businesslogic.Content.XmlPopulate(XmlDocument xd, XmlNode& x, Boolean Deep) +969
umbraco.cms.businesslogic.member.Member.generateXmlWithoutSaving(XmlDocument xd) +93
umbraco.cms.businesslogic.member.Member.XmlGenerate(XmlDocument xd) +46
umbraco.cms.businesslogic.member.Member.Save() +155
umbraco.providers.members.UmbracoMembershipProvider.ValidateUser(String username, String password) +673
System.Web.Security.Membership.ValidateUser(String username, String password) +46
MTLProfile.MTLProfile.btnLogin_Click(Object sender, EventArgs e) +136
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
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) +1565
Has anyone else experienced this? Or does anyone have any idea what I am doing wrong. I have searched the forum but was unable to find anything relating to this problem.
Thanks for your time.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.