Jeremy Wadsworth
My Contribution to the ASP.NET Community


Welcome   
Welcome to my personal website. Here you will find blog posts related to web development as well as personal related interests. If you're here for the source code to my Personal Web Site Kit, please register and you'll receive an email when your account has been approved.


Latest Blog Entries

 Tuesday, October 03, 2006


Type ProfileCommon is not defined    
After writing in my blog about adding custom properties for an ASP.NET 2.0 membership user, I have received several hits on my site regarding the error “Type ProfileCommon is not defined” or “ProfileCommon not found”. The type of error means that the Profile or custom properties you’re intending to add for membership users, is not defined in your web.config. If you’re trying to add Company and PhoneNumber as custom properties of membership user, you will need to define them in the <profile> section in your web.config like the following:
  <profile>
     <properties>
        <add name="Company"/>
        <add name="PhoneNumber"/>
      </properties>
  </profile>

This declaration in the web.config should be nested in the <system.web> section.


jeremy at 7:30 PM | (9) Comments | Add a comment | Permalink





Commments
hemalatha said...

Type ProfileCommon is not defined please let me know how to fix this

Friday, May 23, 2008 6:18 AM

saquib said...

Hi, Thanx for your post, i resolved the error but at runtime an error occurs that 'This property cannot be set for anonymous users'. that i defined in web.config file.

Friday, September 12, 2008 10:49 AM

Terry Walker said...

Wow, I never knew that. That’s pretty interesting...

Monday, January 19, 2009 2:32 AM

Douglas said...

Just tried it, and I get error 500 "The requested page cannot be accessed because the related configuration data for the page is invalid.". I'm using .NET version 4, not sure if that might have something to do with it....

Wednesday, July 07, 2010 11:02 AM

Tiffany jewellery said...

Thanx for your post, i resolved the error but at runtime an error occurs that 'This property cannot be set for anonymous users'. that i defined in web.config file.

Friday, July 16, 2010 9:10 PM

mbt shoes clearance said...

Nice article, great!I like it, thanks for sharing it with us. its worth reading!

Thursday, August 19, 2010 4:16 AM

gucci wallet said...

wow, cool, yep this is a great site. I enjoy.

Saturday, August 21, 2010 7:33 AM

mbt shoes said...

<a href="http://www.mbtshoes1998.com">mbt shoes</a> <a href="http://www.mbtshoes1998.com">mbt chapa</a> <a href="http://www.mbtshoes1998.com">discount mbt shoes</a> <a href="http://www.mbtshoes1998.com/6-mbt-chapa-shoes">mbt chapa rock</a> <a href="http://www.mbtshoes1998.com/6-mbt-chapa-shoes">mbt men chapa shoe</a> <a href="http://www.mbtshoes1998.com/mbt-chapa-shoes/102-mbt-chapa-gtx-mens-chocolate-white-shoes-m11187.html">MBT Chapa GTX Mens Chocolate/White Shoes</a>

Friday, September 03, 2010 11:31 PM

mbt shoes said...

<a href="http://www.mbtshoesandals.com">mbt shoes sale</a> <a href="http://www.mbtshoesandals.com">mbt shoes online</a> <a href="http://www.mbtshoesandals.com">cheap mbt shoes</a> <a href="http://www.mbtshoesandals.com/44-mbt-shoes">mbt shoes cheap</a> <a href="http://www.mbtshoesandals.com/44-mbt-shoes">mbt shoes paypal</a> <a href="http://www.mbtshoesandals.com/58-mbt-mwalk-shoes">mbt m walk women</a

Friday, September 03, 2010 11:32 PM

  Leave a comment

Enter Your Name:
 
Enter your website
Security code from image below:  
Need Custom Controls Work or Training?
   


Join WebHost4Life.com






If you would like to help support this project, please click the button below to make a small donation.