I've implemented a custom profile provider following the pattern and examples
provided with ASP.NET 2.0, but no Profile object ever appears in my page; that
is, after executing the following,
ProfileCommon profile = this.Profile;
in my Page_Load method, profile is always null. My web.config file contains
the
following section:
<profile enabled="true" defaultProvider="UserProfileProvider">
<properties>
<add name="ShowItems" type="System.Boolean" defaultValue="false" />
</properties>
<providers>
<add name="UserProfileProvider"
type="Utilities.UserProfileProvider, Utilities"
applicationName="/"
description="User profile provider" />
</providers>
</profile>
The Utilities assembly is in place, and Intellisense offers the ShowItems
property of profile as a bool, as expected, so the web.config file is being
parsed. Utilities.UserProfileProvider inherits directly from ProfileProvider;
the only members for which I'm providing any real implementation (at this
point)
are GetPropertyValues and SetPropertyValues.
What else should I be doing? Is anything needed in Global.asax to get things
going?
TIA...
--Rich Armstrong