Reputation: 1079
when I add this code to my root web.config under system.web
<profile>
<properties>
<add name="UserId" type="String"/>
</properties>
</profile>
and rebuild my project, the properties don't seem to take.
Profile.UserId does not exist. Is there something obvious that I'm doing wrong? Thanks.
Upvotes: 2
Views: 118
Reputation: 15253
Profiles are not implemented out of the box for the Web Application Project template:
http://codersbarn.com/post/2008/07/10/ASPNET-PayPal-Subscriptions-IPN.aspx
http://leedumond.com/blog/asp-net-profiles-in-web-application-projects/
Have you actually implemented it yet or are you just in the planning stage? If the latter, then the above links should provide some valuable info. This also applies to MVC AFAIK - refer to this question:
How to assign Profile values? [Check Joel Spolsky's answer]
Upvotes: 1