1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / multiple Providers with properties

multiple Providers with properties

4 posts, 0 answered
  1. Adam
    Adam avatar
    63 posts
    Registered:
    30 Jan 2008
    21 Mar 2009
    Link to this post
    I have enabled multiple providers to separate out my CMS users from my public users.  The CMS users are using the default Telerik membership provider and the public users are using the ASP.Net membership provider. 

    Everything is working good except that my Asp.Net membership users profile values are not saving.  So far I only have the default FirstName and LastName fields setup in the profile properties.  I'm not getting any errors, but the username is being loaded for the FirstName regardless of what I enter into the FirstName and LastName fields while saving a member in the public provider group.  What am I missing?
  2. Adam
    Adam avatar
    63 posts
    Registered:
    30 Jan 2008
    21 Mar 2009
    Link to this post
    I found the solution to the problem where the ManageProfile was using the default provider on this page:

    http://msdn.microsoft.com/en-us/library/d8b58y5d.aspx

    provider   Specifies a provider specific to the property. By default, all properties are managed using the default provider specified for profile properties, but individual properties can also use different providers

    By specifying the provider for each property I was able to get it to save my values for the second provider. 

    Strangely... the values for the default provider also save correctly even though I specified the provider to be the secondary provider.

  3. Adam
    Adam avatar
    63 posts
    Registered:
    30 Jan 2008
    21 Mar 2009
    Link to this post
    After looking into the database I found out what was happening.  Setting the provider attribute on the properties made the profile properties for both providers to save to the secondary provider's profile table.   The Telerik membership Provider apparently doesn't allow the reverse situation to happen.  Where the ASP.net profile information would save into the Telerik_Profile table.

  4. Sonya
    Sonya avatar
    231 posts
    Registered:
    24 Sep 2012
    23 Mar 2009
    Link to this post
    Hello Adam,

    We are glad to hear you were able to find the cause of the problem.
    As to Profiles, we are currently working on improving our implementation. This will make its way to the next version (4.0).

    Let us know if you need further assistance.

    Sincerely yours,
    Sonya
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered