More Breaking Changes for Whidbey - Personalization/Profile
Personalization as a keyword/namespace has been replaced with Profile. The namespace, the config section, etc. Also, the provider model for personalization has changed between the PDC Whidbey and the March04Preview Whidbey, such that now providers must inherit from System.Web.Profile.ProfileProvider, rather than implementing a couple of (now non-existent) interfaces. An example config section using the new syntax is as follows:
<add name="NickName" type="System.String" />
<add name="Address" type="System.String" />
<add name="College" type="System.String" />
<add name="SelectedTheme" type="System.String" />
The same information is captured, but the elements have been replaced by a collection with elements. The element, not shown, is still a viable option under . Once properties are entered here and the config file saved, the profile object can be used in a strongly-typed fashion, with Intellisense, throughout the application.
Updated -- More Changes:
The ConfigurationSettings.ConnectionStrings[”MyConnString”] collection no longer is a collection of strings. Instead, it is a collection of ConnectionStringSetting objects, which have among their properties ConnectionName, ConnectionString, and ProviderName. If you used the old syntax before, you need to add “.ConnectionString” in the new build to get it to work.
The section of web.config has been updated. There is now a section under , and the element has been moved out of the section and into the section. The section is also under the section, like so:
A good place to find these largely undocumented config file changes is by looking in machine.config at the element at the top of the file.
The attribute to specify the master page for the page attribute is no longer master (that gives a somewhat esoteric error message of 'master is readonly and cannot be set') - it is now MasterPageFile. For instance:
<%@ Page MasterPageFile=”~/Site.Master” %>