On Nov 14, 4:45*pm, bruce barker
<brucebar...@discussions.microsoft.comwrote:
anonymous profiles are tied to a cookie rather than a login.
-- bruce (sqlwork.com)
Yes, I know. And the cookie was added. I checked it with Firebug.
So how do I get the profile for an anonymous user?! I am using the
following:
ProfileHelper profile = ProfileHelper.GetProfile();
Where ProfileHelper is my custom profile provider that inherits
ProfileBase and has the following method:
public static ProfileHelper GetProfile() {
return Create(System.Web.Security.Membership.GetUser().Us erName)
as ProfileHelper;
}
I always get the error "Object reference not set to an instance of an
object." on the following code line:
return Create(System.Web.Security.Membership.GetUser().Us erName) as
ProfileHelper;
I don't understand how to solve this. any idea? Thanks ...
Thanks,
Miguel