Custom membership providers conflict with umbraco membership
Hi,
I have created custom membership for my asp.net admin web site. so user can login to my admin website.
but big thing is that, I need to take member information from umbraco Public site and need to save information to my asp.net admin website's database not in umbraco website database. I need to create member for my admin website not for umbraco public site.
When I tries to save member info from umbraco public site page it tries to create member for Umbraco member and gives me error but I need to create member for my admin website from umbraco public site page.
I have also tries by changing umbraco web.config to UmbracoMembershipProvider to CustomMembershipProvider still not working.
I got following error...
(System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.cms.businesslogic.Content.CreateContent(ContentType ct) at umbraco.cms.businesslogic.member.Member.MakeNew(String Name, String LoginName, String Email, MemberType mbt, User u) at umbraco.cms.businesslogic.member.Member.MakeNew(String Name, String Email, MemberType mbt, User u) at umbraco.providers.members.UmbracoMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) at System.Web.Security.Membership.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) at System.Web.Security.Membership.CreateUser(String username, String password, String email)
Altho you say the membership config has changed, the exception says you haven't as it still seems to call the umbraco membership provider. How does your provider look like? Did you inherit from standard .net membership provider or the umbraco one? Did you override the CreateUser() method?
I have tried to change the defaultProvider="UmbracoMembershipProvider" to defaultProvider="CustomMembershipProvider" in web.config then I got my task working.
Custom membership providers conflict with umbraco membership
Hi,
I have created custom membership for my asp.net admin web site. so user can login to my admin website.
but big thing is that, I need to take member information from umbraco Public site and need to save information to my asp.net admin website's database not in umbraco website database. I need to create member for my admin website not for umbraco public site.
When I tries to save member info from umbraco public site page it tries to create member for Umbraco member and gives me error but I need to create member for my admin website from umbraco public site page.
I have also tries by changing umbraco web.config to UmbracoMembershipProvider to CustomMembershipProvider still not working.
I got following error...
(System.NullReferenceException: Object reference not set to an instance of an object.
at umbraco.cms.businesslogic.Content.CreateContent(ContentType ct)
at umbraco.cms.businesslogic.member.Member.MakeNew(String Name, String LoginName, String Email, MemberType mbt, User u)
at umbraco.cms.businesslogic.member.Member.MakeNew(String Name, String Email, MemberType mbt, User u)
at umbraco.providers.members.UmbracoMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status)
at System.Web.Security.Membership.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status)
at System.Web.Security.Membership.CreateUser(String username, String password, String email)
Any solution please...
Thanks,
Tushar
Tushar,
Altho you say the membership config has changed, the exception says you haven't as it still seems to call the umbraco membership provider. How does your provider look like? Did you inherit from standard .net membership provider or the umbraco one? Did you override the CreateUser() method?
Looking forward to your info.
Cheers,
/Dirk
Hi Dirk,
Thanks for quick reply..
I have tried to change the defaultProvider="UmbracoMembershipProvider" to defaultProvider="CustomMembershipProvider" in web.config then I got my task working.
Thanks.... Dirk
is working on a reply...