Profile: Removing inheritsFrom="EPiServerProfile"

by: Johan Olofsson

As per EPiServerCMS5 SP1 the dependency for the Profile to inherit from EPiServerProfile has been removed and one can now completely define the profile properties in the web.config.

However, there are some needed properties in order for the Edit/Admin-mode to work correctly:

   1: <profile enabled="true" defaultProvider="SqlProfile" automaticSaveEnabled="true">
   2:  <providers>
   3:    <clear />
   4:    <add name="SqlProfile" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="EPiServerDB" applicationName="EPiServerSample" />
   5:  </providers>
   6:  
   7:  <properties>
   8:   <add name="SubscriptionInfo" type="EPiServer.Personalization.SubscriptionInfo, EPiServer" provider="SqlProfile" />
   9:   <add name="CustomExplorerTreePanel" type="System.String" provider="SqlProfile" />
  10:   <add name="FileManagerFavourites" type="System.Collections.Generic.List`1[System.String]" provider="SqlProfile" />
  11:   <add name="EditTreeSettings" type="EPiServer.Personalization.GuiSettings, EPiServer" provider="SqlProfile" />
  12:   <add name="ClientToolsActivationKey" type="System.String" provider="SqlProfile" />
  13:   <add name="FrameworkName" type="System.String" provider="SqlProfile" />
  14:   ...
  15:  </properties>
  16: </profile>

/johan

04 March 2008

Tags:


    Comments

    Post a comment    
    User verification Image for user verification  
    EPiTrace logger