More in this section

Forums / Developing with Sitefinity / Error in renaming custom membership provider

Error in renaming custom membership provider

3 posts, 0 answered
  1. RC
    RC avatar
    15 posts
    06 Apr 2010
    19 Jul 2011
    Link to this post

    Here is the flow:
    1. create custom membership by inheriting OpenAccessMembershipProvider
    2. configure it on Administration->Settings->Advanced->Security->Membership Providers (placed a name and type)
    3. add a user on the custom membership provider, rebuild site
    4. user successfully logged in
    5. rename the custom membership provider, rebuild site
    6. successful, the new name appear now on Add User and Login dropdown
    7. logout, and re login is successful
    8. view users on custom provider (can't view)
    9. logout, and re login (unsuccessful), prompt says
    "Someone is already using this username and password from another computer or browser.
    To proceed, you need to log him/her off"

    when I click "Log the other user and enter" button, yellow screen of death error.

    There is no configuration for data provider with the name of "CustomProvider" for "Telerik.Sitefinity.Security.UserManager" manager. Please check the spelling of the name and whether such configuration exists.

    I observed SF do not update sf_manager_info and sf_lic_user_activity tables when renaming custom membership provider. I edited them manually and error was not encountered anymore.

  2. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    03 Nov 2014
    21 Jul 2011
    Link to this post
    Hi Rc,

    The old name of the membership provider is saved in a table named sf_lic_user_activity. Since you renamed the provider you will need to manually delete the record in this table that has the column provider_name = 'CustomProvider'

    Best wishes,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Cheryl Forrest
    Cheryl Forrest avatar
    4 posts
    19 Jun 2010
    15 Dec 2011
    Link to this post
    We've fixed this exact same issue: Within IIS - you can only have Forms + Windows authentication turned on for a secure folder so that you don't have to provide the domain name during the authentication challenge. 
    Apparently with Sitefinity 4.3, if you provide the domain name during authentication, they look for a configuration entry to match the domain name - no idea why and what a hassle to figure out; hope this helps!
3 posts, 0 answered