We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


ASP.NET 2 - "This property cannot be set for anonymous users" when trying to assign values to profile

gusdogs asked
Medium Priority
Last Modified: 2008-01-09


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 ?

Watch Question

Is the LoginCreatedUser property of the CreateUserWizard control set to "True" or "False" - it needs to be True for the profile to be accessible via the Profile global.  Otherwise you need to know the user's name and fetch the profile from the system like so:

Dim pro As New ProfileCommon()
pro.Initialize(username, true)

and you would be able to access pro using the same methods as you would the Profile global.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


Thanks a lot Kyanar, got it working.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.