2

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.

Clay Smith
  • 1,051
  • 14
  • 27

1 Answers1

1

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]

Community
  • 1
  • 1
IrishChieftain
  • 15,108
  • 7
  • 50
  • 91
  • Thx! Making my own Profile class worked for me. I also had to run "aspnet_regsql.exe -S DBServerName -U DBLogin -P DBPassword -A all -d DBName" on the database – Clay Smith Sep 24 '12 at 22:29
  • The command creates the necessary tables required in order to use profiles. – Clay Smith Sep 25 '12 at 21:34