ASP.NET 2 - "This property cannot be set for anonymous users" when trying to assign values to profile
Posted on 2006-04-04
I am using the CreateUserWizard to get a users credentials.
In the CreateUserWizardStep, I have also got textboxes for the users address which
will be assigned to their profile.
In the web.config file, I have allowed all anonymous users to access all pages of the site.
In the CreateUserWizard1_CreatedUser(ByVal....) sub, which is run after clicking submit, I am attempting to assign the values of the textboxes to the profile. I get the error message
"The property cannot be set for anonymous users" (When the SET attempts to set the value of the Profile element to the textbox value)
Surely the user is no longer anonymous, after all I am trying to set their profile in the "CreatedUser" sub ?