none
ASP.NET: How to change Profile Provider during runtime RRS feed

  • Question

  • Hi All,

    My site uses the built-in ASP.NET Profile module to manage user profiles.

    I need to change the Profile Provider during runtime. The reason is that the site will be implemented in two macines: a server using Sql Server 2008 R2 and an embedded system using Sql Compact 4.0.

    For the 1st one it is using the built-in profile provider 'SqlProfileProvider'. For the 2nd one it is using the new DefaultProfileProvider by the new ASP.NET Universal Providers.

    I need to find a way to change the provider depending on the machine that is running the site. I managed to do that for Membership & Role, by using something like:

    Membership.Providers["MyProvider"].GetUser(UserGUID, true);

    But I can't find out how to do the same sort of thing for Profile.

    Thanks.

    - brian
    Wednesday, August 17, 2011 10:33 AM

All replies

  • Hi Brian,

    Welcome to SQL Server forum!

    For this issue, I would recommend asking in the ASP.NET forum (http://forums.asp.net) where there are more experts about ASP.NET Profile and could get a quicker answer. Thanks for your support and understanding.


    Best Regards
    Alex Feng | Forum Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
    Tuesday, August 23, 2011 6:12 AM
    Moderator