Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tushar Vaja 12 posts 32 karma points
    Sep 27, 2011 @ 12:13
    Tushar Vaja
    0

    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

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Sep 27, 2011 @ 12:23
    Dirk De Grave
    0

    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

  • Tushar Vaja 12 posts 32 karma points
    Sep 27, 2011 @ 12:50
    Tushar Vaja
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft