I had a lot of trouble trying to figure out why I couldn't add profile properties to my user registration in ASP.NET 4.0. All of the blogs and searches I found said it was easy - all you have to do is add a few tags to your web.config, and then a custom class should be generated for you on build, and "voila!", so easy!
The problem was, no matter how I messed with the web.config to add those profile property tags, it seemed like I could never see this auto generated custom class. I dug a little deeper and found out that the reason why I couldn't use this feature, is because it doesn't work with Web Projects!! It only works with ASP.NET Web Sites. This is a distinction that many people overlook. Anyhow, there is a way to do it, and I've posted the very helpful link below.
http://weblogs.asp.net/jgalloway/archive/2008/01/19/writing-a-custom-asp-net-profile-class.aspx
Monday, September 19, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment