Is it possible to persist two profiles with the Profile Provider Model?

Posted by NickGPS on Stack Overflow See other posts from Stack Overflow or by NickGPS
Published on 2010-04-26T11:41:24Z Indexed on 2010/04/26 11:43 UTC
Read the original article Hit count: 209

Filed under:
|

I have a website that needs to store two sets of user data into separate data stores. The first set of data is used by the SiteCore CMS and holds information about the user. The second set of data is used by a personalisation application that stores its own user data. The reason they aren't stored together in the same profile object is because the personalisation application is used across multiple websites that do not all use SiteCore.

I am able to create multiple Profile Providers - I currently have one from SiteCore and a custom provider that I have written and these both work in isolation. The problem exists when you try to configure both in the same web.config file. It seems you can only specify a single Profile object in the web.config file, rather than one for each provider. This means that regardless of which provider is being used the .Net framework sends through the profile object that is specified in the "inherits" parameter in the profile section of the web.config file.

My questions are - Is it possible to specify a different Profile object for each Profile Provider? If so, how and where is this specified?

Thanks, Nick

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about profile-provider