How to change Profile Provider during runtime?

Joined
Aug 17, 2011
Messages
1
Reaction score
0
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 (which is still in alpha stage).

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top