In fact, AspNetSqlProfileProvider (of type System.Web.Profile.SqlProfileProvider ) is added by default to machine.config . Look at your C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG (or another location). However, it is not registered as a default provider. Therefore, if you are satisfied with the default settings , just use the following configuration:
<profile enabled="true" defaultProvider="AspNetSqlProfileProvider" />
If you want to use a custom provider, it is usually recommended that you clear all existing providers (although this is optional) and name a different default provider.
The reason you donβt use remove is because it requires a name attribute that you may not know. Using clear removes all previously registered profile providers, using remove removes only one by name.
As for Q2, you're right. The database schema used must be sufficiently general to accommodate many different properties (and property types).
Ronald wildenberg
source share