Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to change Profile Provider during runtime?

Thread Tools

How to change Profile Provider during runtime?

briandre briandre is offline
Junior Member
Join Date: Aug 2011
Posts: 1
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.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to Change Membership provider during runtime =?Utf-8?B?QmFsYWpp?= ASP .Net 5 07-24-2008 02:19 PM
Visual Studio 2008 web administration>profile: "The profile wasn't created"? Andy B ASP .Net 0 05-03-2008 05:15 PM
Want to profile monitor for Fuji Frontier ICC profile? Lynn Digital Photography 9 09-08-2005 12:17 PM
Java Web Start app icons keep going in user profile not All Users profile Brad Java 1 07-19-2005 02:10 AM